Comments (13)
+1
from liquid.
+1
from liquid.
+1
from liquid.
+1
from liquid.
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.
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.
Great work, I'll test it this week
from liquid.
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.
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.
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.
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.
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.
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)
- Templates that use `assign` / `capture` tags are thread-unsafe HOT 4
- Can not use where filter on images
- Missing 4.0.4 release in changelog
- Feature request: add where_exp from Jekyll or something similar
- Test fails with Fedora glibc -2.38.9000-20.fc40 and onwards, perhaps due to qsort behavior change HOT 2
- https://salla.sa/bero-2030.com
- loop through list.metaobject_reference metafield's not working HOT 1
- Cropped images in srcset using image_tag HOT 2
- weight_with_unit Filter Rounding is not Accurate
- img_tag widths are not working correctly HOT 1
- font_url displays error with preload_tag due to whitelist HOT 3
- How to remove Tab space with strip or strip_newlines? HOT 3
- Ruby 3.3 deprecation warnings: base64, bigdecimal will no longer be part of the default gems HOT 1
- Why doesn't parse_json take effect? HOT 1
- Fix Wiki reference
- Custom Liquid::Drop that is called for every missing variable HOT 1
- Possible to get full object & variable name with `strict_variables: true`?
- video_tag fully disable poster HOT 2
- Expose Liquid::Condition in public API
- alt attribute not set for media.preview_image with image_tag filter HOT 1
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 liquid.