Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Custom view render

$
0
0
Hi,
I have a Control that maintain a list of texts and I want to render them using a quite complex view. I would like to create a template that renders text in paragraph and inserts as much paragraphs as possible in a single <div> (based on element's height) before create and switch to a new one; to do this I should know prior every paragraph's height, which is not possible because elements are not insert in DOM yet.
Using "manual" DOM insertion I achieve my result  but I would like to obtain same result using EJS / Mustache templating because I would like to use Live Binding.

Is there a way to obtain such behaviour with a template engine or should a use "manual" DOM insertion? In last case how should I simulate Live Binding behaviour?

Many thanks

Viewing all articles
Browse latest Browse all 3491

Trending Articles