Skip to content

Client-side Support#39

Open
wintondeshong wants to merge 1 commit into
creationix:masterfrom
wintondeshong:master
Open

Client-side Support#39
wintondeshong wants to merge 1 commit into
creationix:masterfrom
wintondeshong:master

Conversation

@wintondeshong

Copy link
Copy Markdown

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) {'

…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

Copy link
Copy Markdown

+1

1 similar comment
@heikki

heikki commented Jul 3, 2011

Copy link
Copy Markdown

+1

@wintondeshong

Copy link
Copy Markdown
Author

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

devth commented Jul 15, 2011

Copy link
Copy Markdown

+1 🍺

@ajpiano

ajpiano commented Aug 11, 2011

Copy link
Copy Markdown

This is great. +1

@jstevenson

Copy link
Copy Markdown

+1

5 similar comments
@jkichline

Copy link
Copy Markdown

+1

@mwurzberger

Copy link
Copy Markdown

+1

@andCulture

Copy link
Copy Markdown

+1

@fnmunhoz

Copy link
Copy Markdown

+1

@joshrieken

Copy link
Copy Markdown

+1

@devth

devth commented Nov 2, 2011

Copy link
Copy Markdown

Anything happening here?

@rmw

rmw commented Dec 15, 2011

Copy link
Copy Markdown

+1

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

@rmw

rmw commented Dec 15, 2011

Copy link
Copy Markdown

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

betamos commented May 13, 2012

Copy link
Copy Markdown

+1

1 similar comment
@du-song

du-song commented Jan 5, 2013

Copy link
Copy Markdown

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.