GithubHelp home page GithubHelp logo

jekyll-liquid-plus's People

Contributors

imathis avatar parkr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rx jayvdb

jekyll-liquid-plus's Issues

Render tag blows up on {{ site }} variable usage.

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.

Return tag fails to evaluate each variable in a loop

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.

Here is the test file.

Compatibility issue with Jekyll 2?

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.