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:

  1. i have modify generated files in dev folder directly
  2. when im modifing source jade, html, coffee - files, dev folder overwritten
  3. 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...

  1. generate templates me out of static files (via json mapping file)
  2. 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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -