Giter VIP home page Giter VIP logo

Comments (13)

sgruhier avatar sgruhier commented on July 20, 2024

+1

from liquid.

hipertracker avatar hipertracker commented on July 20, 2024

+1

from liquid.

sayale7 avatar sayale7 commented on July 20, 2024

+1

from liquid.

andreapavoni avatar andreapavoni commented on July 20, 2024

+1

from liquid.

tobi avatar tobi commented on July 20, 2024

Liquid is now fully compatible with Rails3 (supposedly) and the wiki should be editable. I converted it to the new github wiki system. Please contribute!

from liquid.

DBA avatar DBA commented on July 20, 2024

I've started putting up a simple rails 3 liquid demo at http://github.com:GnomesLab/liquid_demo

When I have time I'll make it more fashion police friendly and turn it into something more educative.

For now it basically shows how to get liquid up and running, which is enough material for a "Get liquid up and running on your rails 3 project" wiki page.

The demo is also up on Heroku: http://liquid-demo.heroku.com/

Ping me if you're having problems getting liquid started with rails 3.

Best regards,
DBA

from liquid.

sgruhier avatar sgruhier commented on July 20, 2024

Great work, I'll test it this week

from liquid.

shenoudab avatar shenoudab commented on July 20, 2024

Dears,

kindly, i try to use rails3 with liquid based on the liquid_demo sample.
but i like to create a separated files for templates as ".liquid"

i create an initializer file in /config/initializers/liquid.rb
contains :

require 'liquid'
require 'extras/liquid_view'

ActionView::Template.register_template_handler :liquid, LiquidView

and i create a .liquid file inside /views/liquid/index.html.liquid contains hi {{ name }}

and i got the below error :
undefined method `template' for #LiquidController:0xafb0464

your support is appreciated.

from liquid.

DBA avatar DBA commented on July 20, 2024

As far as I could understand, or my personal opinion goes, .liquid files should effectively be deprecated, as liquid is not positioned as a templating engine, per se. Intead, liquid has very specific use scenarios, usually where you can't trust the users providing you with the template code.

Perhaps I should update my repo to 2.2.6, removing that extension all together. Though I'm unsure if tobi would be willing to merge that into the mainline.

Your thoughts?

from liquid.

shenoudab avatar shenoudab commented on July 20, 2024

Dear DBA,

thanks for your replay.
kindly, as far as i know about liquid that its a templating language. and the templates have an option to be saved in a files or database. as Liquid::Template can parse these files for rendering the templates.
this also meets the mentioned very specific use scenarios of liquid.

please, provide your feedback.

from liquid.

n5ken avatar n5ken commented on July 20, 2024

Hi, shenoudab

I have the same problem like you when I'm trying to render a .liquid file i got:
undefined method `template' for #MainController:0xafb0464

would you kindly tell me how you fix it? thank you.

Regards,
n5ken

from liquid.

shenoudab avatar shenoudab commented on July 20, 2024

Dear ken,
kindly, i didn't got a fix for the above problem with .liquid files, as DBA said that rendering .liquid files will not be included in liquid.

Regards,
Shenouda Bertel

from liquid.

n5ken avatar n5ken commented on July 20, 2024

Hi, Shenouda

i think it's the problem of the LiquidView we register, my rails version is 3.0.3, but the last update for this file is support for rails 2.2, in rails 3.0.3, there is a delicate method called 'template' in the class ActionView. so we need to update this file for using .liquid in rails 3.

Best Regards,
Ken

from liquid.

Related Issues (20)

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.