Friday 15 January 2016

My new template language, for emmet one page apps

Hello from /r/javascript!I just published the second version of my weekend project emmetp, a emmet template language.I haven't thoroughly tested this version and could use a few testers, also would like some criticisms, optimizations and code review if anyone wants to. I'm using it as a code sample while applying, but tbh I think it's too regex-heavy.src: http://ift.tt/233XOYJ: http://ift.tt/1Kh1rz3: npm install emmetp -gWhat does it do? Its a template language based on the emmet sublime plugin. And you can inline JS or es6 now.Why? Mostly for one-page apps and code golf, or for mocking up a prototype/quick hack. When the project grows just move the JS out and push TAB to expand the emmet, right? right.Example:! #app span{hello world} button.btn1+button.btn2 #footer>div>span>label{or just one line} script& console.log('inline js') - script&coffee: console.log "or coffeescript/babel" - That should output a fully functional HTML file with working javascript (and coffeescript compiled js).If you want to try it out you can npm install emmetp -g.

Submitted January 15, 2016 at 09:51AM by mc_hammerd

No comments:

Post a Comment