wordpress - How to create cms templates from HTML files via GruntJS? -
in webdesign process use jade, sass, coffe etc. generate static files via gruntjs watch task dev folder. , of times after build process done, cms comes along , want templates work. thats html files php/ruby/python tags in it. let´s it´s wordpress theme.
the problem is:
- i have modify generated files in dev folder directly
- when im modifing source jade, html, coffee - files, dev folder overwritten
- if clone static files , move them theme folder, have apply manually every change made src/dev folder cloned theme template files.
that´s odd. i´am in need of grunt task maybe...
- generate templates me out of static files (via json mapping file)
- generate templates directly src files via special attributes, comments or similar
there´s 1 thread found user tries accomplish same jsdom. can me find existing tool accomplish such task or have build on own?
thanks, robert
check out grunt-usemin
replaces references non-optimized scripts or stylesheets set of html files (or templates/views)
Comments
Post a Comment