imathis / jekyll-liquid-plus Goto Github PK
View Code? Open in Web Editor NEWSuper powered Liquid tags for smarter Jekyll templating.
License: MIT License
Super powered Liquid tags for smarter Jekyll templating.
License: MIT License
When using the render tag, references to {{ site.any_var }}
fail, will the following stack trace:
Liquid Exception: undefined method `to_liquid' for #<Jekyll::Site:0x007ff184544160> in /Users/imathis/workspace/octodev/liquid-plus/test/source/f/file5.html
Liquid Exception: undefined method `to_liquid' for #<Jekyll::Site:0x007ff184544160> in render.html
/Users/imathis/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/liquid-2.5.1/lib/liquid/context.rb:181:in `find_variable': undefined method `to_liquid' for #<Jekyll::Site:0x007ff184544160> (NoMethodError)
from /Users/imathis/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/liquid-2.5.1/lib/liquid/context.rb:203:in `variable'
from /Users/imathis/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/liquid-2.5.1/lib/liquid/context.rb:160:in `resolve'
I've added a failing test here where the rendered file simply tries to output {{ site.some_var }}
which is declared properly in _config.yml.
When comparing variables in a loop, only the first variable is evaluated.
Given the page YAML:
people:
- { name: Bill }
- { name: Bob }
Then the following loop:
yep โ {% for person in page.people %}{% return 'yep' if person.name == Bill %}{% endfor %}
This should pass for the first run through the loop, and fail on the second, however it passes on both, only evaluating the first variable for person
.
Run the tests on the render-layout branch.
Hi,
I just upgraded to Jekyll 2, and I'm getting the following error:
Unable to activate jekyll-liquid-plus-1.2.0, because jekyll-2.0.3 conflicts with jekyll (~> 1.3.0) (Gem::LoadError)
Previously, everything was working great.
I'm not an expert when it comes to ruby gems, but would making a change to this line in jekyll-liquid-plus.gemspec fix it perhaps?
spec.add_runtime_dependency "jekyll", "~> 1.3.0"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.