www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Jade template engine for D web developer

reply Long Chang <changlong jkys.info> writes:
Jade  template engine document : https://github.com/visionmedia/jade

win32/linux32/linux64 example with source :
http://gool.googlecode.com/files/jade_r628.tar.bz2

source example: https://gist.github.com/843204


The jade.filter is not implement,   we can cache the complile1 result if the
template is not change, we can cache complile2 result if the static vars is
not change .

The final render function is for render dynamic vars ,  the template &
static vars is already convert to string in this part ,  It is fast enough
with fastcgi app for me .

If you want more speed, you can implement a jade.lexer without pcre,  and
also you can use stack for jade.AST.Node . If you use v8 instead of
dmdscript will be a huge performance boost.


I don't know any things about the license, If any people want use it
for purpose
is welcome.
Feb 24 2011
parent Jacob Carlborg <doob me.com> writes:
On 2011-02-25 01:48, Long Chang wrote:
 Jade  template engine document : https://github.com/visionmedia/jade

 win32/linux32/linux64 example with source :
 http://gool.googlecode.com/files/jade_r628.tar.bz2

 source example: https://gist.github.com/843204


 The jade.filter is not implement,   we can cache the complile1 result if
 the template is not change, we can cache complile2 result if the static
 vars is not change .

 The final render function is for render dynamic vars ,  the template &
 static vars is already convert to string in this part ,  It is fast
 enough with fastcgi app for me .

 If you want more speed, you can implement a jade.lexer without pcre,
 and also you can use stack for jade.AST.Node . If you use v8 instead of
 dmdscript will be a huge performance boost.


 I don't know any things about the license, If any people want use it for
 purpose is welcome.

It looks like HAML. -- /Jacob Carlborg
Feb 25 2011