creationix / haml-js

Haml ported to server-side Javascript. This is a traditional server-side templating language. Tested with node-js
MIT License
900 stars 109 forks source link

Client-side Support #39

Open wintondeshong opened 13 years ago

wintondeshong commented 13 years ago

Here is my fork of haml-js to allow for client-side support (primarily internet explorer)

Outline of changes: Refactored Array.forEach, Array.indexOf, Array.map, and Array.filter with equivilent underscore.js functions Refactored String.trim to use internal trim function Refactored primary Haml signature to exclude 'Haml' from '...function Haml(haml, config) {'

tribalvibes commented 13 years ago

+1

heikki commented 13 years ago

+1

wintondeshong commented 13 years ago

Note: You must add json2.js as a dependency when using this on the client-side (https://github.com/douglascrockford/JSON-js) as IE7 and lower don't natively support JSON.stringify.

devth commented 13 years ago

+1 :beer:

ajpiano commented 13 years ago

This is great. +1

jstevenson commented 13 years ago

+1

jkichline commented 13 years ago

+1

mwurzberger commented 13 years ago

+1

andCulture commented 13 years ago

+1

fnmunhoz commented 13 years ago

+1

joshrieken commented 13 years ago

+1

devth commented 13 years ago

Anything happening here?

rmw commented 12 years ago

+1

Looks like their have been a few updates to master since winton's changes.

rmw commented 12 years ago

In the meantime, I've pulled the upstream changes into this fork on winton's branch: https://github.com/rmw/haml-js/blob/master/lib/haml.js

In case anyone wants it ...

betamos commented 12 years ago

+1

du-song commented 11 years ago

+1