What is your Mako + Fanstatic recipes ?

57 views
Skip to first unread message

Stéphane Klein

unread,
Apr 8, 2012, 6:20:31 AM4/8/12
to mako-d...@googlegroups.com
Hi,

what is your Mako + Fanstatic recipes ?

Example, in one of my previous Pylons 1 project, I've appended this code in helpers module :

    from js.jquery import jquery
    from js.jquery_expandbox import expandbox as jquery_expandbox
    from js.lesscss import lesscss as __lesscss
    from js.jquery_jqote2 import jqote2 as jquery_jqote2
    from js.jquery_qtip import qtip as jquery_qtip
    from js.jquery_simplemodal import jquery_simplemodal
    from js.jquery_ba_resize import ba_resize as jquery_ba_resize

Next in my template, I can do :
 
    <%
    h.jquery.need()
    h.jquery_simplemodal.need()
    %>

What is your recipe ?

Thanks for your help.

Best regards,
Stephane
Reply all
Reply to author
Forward
0 new messages