Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support single quotes #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ypresto
Copy link

@ypresto ypresto commented Mar 21, 2015

Related to #83.

Currently single quote attributes compiled into html_escape('single_quoted_string').
This is just work but not very good at performance and backslashes (perhaps attr: 'a\b' compiled into html_escape('\') and it should be html_escape('\\')).

This PR adds support for compiling single quoted attributes into simple string.

@@ -1,5 +1,5 @@
var Haml;

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, sorry, but atom.io removes all trailing spaces automatically.

@ypresto ypresto changed the title Support sigle quotes Support single quotes Mar 21, 2015
@adamdicarlo
Copy link

@ypresto cool, this is a big help, though it doesn't seem to support quotes inside single quotes, like

%foo(attr='a"b"c')

whereas

%foo(attr="a'b'c")

works

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.

None yet

2 participants