We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! First off thanks for creating this, love it!
The issue I'm having is that when I use liquid to assign a value to a tag attribute it's not being interpolated correctly. For example:
%a.button.filled.color-yellow{ href: "{{ '/venue' | relative_url }}" }
is returning an anchor with an empty href attribute. However if I move that liquid tag into the contents of the anchor it renders correctly.
Any assistance you can provide?
The text was updated successfully, but these errors were encountered:
Hi,
I had trouble also with interpolations, I made a gem with a slightly different approach https://github.com/afaundez/jekyll-haml-markup.
It had a lot of work to do, but I'm willing to maintain it.
Sorry, something went wrong.
@EvanAgee did you ever figure this out?
I assume that your string is being escaped from "{{ '/venue' | relative_url }}" to "{{ '/venue' | relative_url }}" and being ignored.
"{{ '/venue' | relative_url }}"
"{{ '/venue' | relative_url }}"
In rails it would overcome with simply adding "{{ '/venue' | relative_url }}".html_safe.
"{{ '/venue' | relative_url }}".html_safe
But in jekyll where is no such function for string, put this in _plugins/string_helpers.rb to obtain it:
_plugins/string_helpers.rb
class String def html_safe? defined?(@html_safe) && @html_safe end def html_safe @html_safe = true self end end require 'haml/helpers/xss_mods' module Haml::Helpers include Haml::Helpers::XssMods end
Credits for answer going here, look there for details.
No branches or pull requests
Hello! First off thanks for creating this, love it!
The issue I'm having is that when I use liquid to assign a value to a tag attribute it's not being interpolated correctly. For example:
is returning an anchor with an empty href attribute. However if I move that liquid tag into the contents of the anchor it renders correctly.
Any assistance you can provide?
The text was updated successfully, but these errors were encountered: