Comments (3)
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.
from jekyll-haml.
@EvanAgee did you ever figure this out?
from jekyll-haml.
I assume that your string is being escaped from "{{ '/venue' | relative_url }}"
to "{{ '/venue' | relative_url }}"
and being ignored.
In rails it would overcome with simply adding "{{ '/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:
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.
from jekyll-haml.
Related Issues (18)
- Output line numbers when errors occur
- Layouts not being rendered HOT 9
- _layout haml not working HOT 4
- undefined method 'transform' HOT 7
- Automatic Excerpts Not whitespace-aware HOT 1
- Plugin seems to be without effect HOT 1
- Does this not work with GitHub pages? HOT 2
- Passing options to includes HOT 3
- Setting options has no effect
- HAML parsing errors are obfuscated HOT 1
- any advice using this with jekyll-assets? HOT 1
- Parsing sub-folder files? HOT 3
- :markdown filter awareness of redcarpet HOT 1
- I'm not sure it's an issue but more of a question... HOT 4
- compile_in_place option?
- Guard::Jekyll failed: Illegal nesting: nesting within plain text is illegal. HOT 4
- if statements? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-haml.