laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

How to use with jade? #90

Closed teddychan closed 11 years ago

teddychan commented 11 years ago

I know there is npm install punch-engine-jade

also make the jade work. However, in the punch header, there is a function:


{{#stylesheet_bundle}}/css/all.css{{/stylesheet_bundle}}
{{#javascript_bundle}}/js/all.js{{/javascript_bundle}}

How can I write it in jade?

laktek commented 11 years ago

Jade's helper link(rel='stylesheet', href='/css/main.css'), will work on a generated site.

But we might have to come up with a Jade specific helper to use in the development mode (which will reload the files).

Can you open an issue in github.com/laktek/punch-engine-jade ?

teddychan commented 11 years ago

no problem. issue is open, hope you can keep track at. and i am running the site by using your method. work great~