by Carl on January 21, 2010
Now that I’ve played around with EJS for a while, I can say I’m fairly comfortable with it, and love the syntax. It just makes sense to me. But recently, I came across another templating framework, called JAML, or HAML for Javascript (GitHub Page), and it addresses one of my main concerns with EJS. I’ll get to what that was in a little bit. First, let’s look at some JAML syntax:
Example of JAML syntax
[click to continue…]
by Carl on January 11, 2010
Had a little time to kill between tasks a few weeks ago, and Googled to see if I could find a solution to all these dreaded string-concatenations I was finding throughout pieces of our Javascript codebase at work. They were piecing together HTML code (in strings) and attaching objects’ data into the HTML. I stumbled upon EJS (http://embeddedjs.com) and fell in love instantly!
It allows you to create HTML templates, with Javascript placeholders, not unlike Ruby on Rails or ASP.Net. Their main page has a great, little interactive demo. Go check it out, and come back. I’ll probably still be here.
…
[click to continue…]