-
Notifications
You must be signed in to change notification settings - Fork 122
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Double Quotes vs Single Quotes #101
Comments
Ivan, please see the latest nightly build, you will see that I have added a GlassHtml.QuotationMark as an option: https://github.com/mikeedwards83/Glass.Mapper/blob/develop/Source/Glass.Mapper.Sc/GlassHtml.cs#L69 |
Thanks for the effort Mike! |
No problem, I have written a unit test for it but let me know if you find This is currently only available on the feed from the Glass build server. On 11 February 2015 at 07:45, IvanLieckens notifications@github.com wrote:
|
Released |
Is there a specific reason that single quotes are being used? I think double quotes should be the default, but if you want single quotes you can override it. |
When using the BeginRenderLink in GlassMapper Sitecore MVC I ran into the issue where I had added an extra attribute onto my link for rendering the GA tracking: new { onclick = "ga('send', 'event', 'category', 'action', 'label');" }
This mangled the HTML output however due to the single quotes being used by the GlassMapper HtmlHelper. All our HTML is using double quotes and our js is using single quotes. I'm aware this is a flavor issue (and I fixed it for now by using double quotes in the attribute) but would it be possible to turn this into an option what quoting you prefer? It'd help my OCD getting all the quotes to match ;-)
The text was updated successfully, but these errors were encountered: