Template composition with PURE?

47 views
Skip to first unread message

nmiddleweek

unread,
May 23, 2012, 7:44:00 AM5/23/12
to JavaScript Templates Engine PURE
Hi,

Coming from a Flex background, I'm just getting into dynamic client-
side rendering with JavaScript and I've just been reading this
article: http://stephenwalther.com/blog/archive/2010/11/30/an-introduction-to-jquery-templates.aspx

Some chap mentioned PURE in the comments so thought I'd check it out.
My question is: How can you do Template Composition as in jquery-
Templates?

I'd like, to render my JSON data differently depending on a property
value or if there is an image path supplied or if my 'links' property
has data in it.

Hope this makes sense and thanks for the replies in advanced...

Cheers,
Nick

Mic (BeeBole)

unread,
May 24, 2012, 8:12:57 AM5/24/12
to JavaScript Templates Engine PURE
There are few examples in the zip file you can get from http://github.com/pure/pure
In the tutorial directory. Did you see them?

There is as well a documentation at: http://beebole.com/pure/documentation
Click Get Started, to have a very basic example.

There is as well an excellent introduction done by Jan at:
http://www.lieuwejan.com/article/show/2/pure-generate-html-from-json-data


On May 23, 1:44 pm, nmiddleweek <nmiddlew...@googlemail.com> wrote:
> Hi,
>
> Coming from a Flex background, I'm just getting into dynamic client-
> side rendering with JavaScript and I've just been reading this
> article:http://stephenwalther.com/blog/archive/2010/11/30/an-introduction-to-...
Reply all
Reply to author
Forward
0 new messages