digitalmars.D.announce - Jade template engine for D web developer
- Long Chang <changlong jkys.info> Feb 24 2011
- Jacob Carlborg <doob me.com> Feb 25 2011
--00032555e3cacd9039049d10b1b8 Content-Type: text/plain; charset=UTF-8 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. --00032555e3cacd9039049d10b1b8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <br>Jade=C2=A0 template engine document : <a href=3D"https://github.com/vis= ionmedia/jade">https://github.com/visionmedia/jade</a><br><br>win32/linux32= /linux64 example with source : <a href=3D"http://gool.googlecode.com/files/= jade_r628.tar.bz2">http://gool.googlecode.com/files/jade_r628.tar.bz2</a><b= r> <br>source example: <a href=3D"https://gist.github.com/843204">https://gist= .github.com/843204</a><br><br><br>The jade.filter is not implement,=C2=A0= =C2=A0 we can cache the complile1 result if the template is not change, we = can cache complile2 result if the static vars is not change .<br> <br>The final render function is for render dynamic vars ,=C2=A0 the templa= te & static vars is already convert to string in this part ,=C2=A0 It i= s fast enough with fastcgi app for me .<br><br>If you want more speed, you = can implement a jade.lexer without pcre,=C2=A0 and also you can use stack f= or jade.AST.Node . If you use v8 instead of dmdscript will be a huge perfor= mance boost.<br> <br><br>I don't know any things about the license, If any people want u= se it for <span class=3D"Apple-style-span" style=3D"border-collapse: separa= te; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style= : normal; font-variant: normal; font-weight: normal; letter-spacing: normal= ; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><spa= n class=3D"Apple-style-span" style=3D"font-family: arial,sans-serif; font-s= ize: 13px; white-space: nowrap;">purpose is welcome. =C2=A0</span></span>= =C2=A0=20 --00032555e3cacd9039049d10b1b8--
Feb 24 2011
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








Jacob Carlborg <doob me.com>