tj / consolidate.js

Template engine consolidation library for node.js
3.48k stars 353 forks source link

Add support for HTMLC #298

Closed arturhood closed 2 years ago

arturhood commented 6 years ago

HTMLC is a preprocessor that allows users to write css ID's & classes using '#' or '.' for example: <div#head>Lorem</div#head> --changed to--> <div id='head'>Lorem</div>

My motivation for adding this is because vue-loader (from the Vue.js framework) uses consolidate.js for preprocessing html templates. It is very convenient to be able to set ' lang="htmlc" ' at the top of a .vue file (which is processed by vue-loader into html/css), then be able to write htmlc like a rockstar.

doowb commented 6 years ago

@arturhood, thanks for the PR!

Please add tests and update the README with a link to the template engine.

niftylettuce commented 2 years ago

@arturhood if you fix conflicts, please submit a new PR