Hi,
I'm trying to use the plugin auto_complete with mephisto.
My problem is that i cannot add a code to a view because i don't have a liquid tag to do it. I read a liquid manual that teaches you how to create your methods inside of a new liquid tag, but how can i create a new liquid tag to a plugin method?
...
Hi there;
I'm looking for giving the ability to user to modify
code in a minimal part of a rails app, part that is located in the app directory.
I'm stuck with the "not reload anything automatically in production", is there a way to avoid it ?
(talking about "user's template customization"; is liquid a way through this problem ? don't s...
I am using liquid plugin in my app.
While using rails helper methods like form_for,check_box_tag i am getting an error form_for not defined..
Has anybody know how to use rails helper methods through liquid plugin?
...
I'm trying to render a liquid template within a liquid layout (Liquid Template lang, not CSS liquid layout stuff). I can't seem to get the layout part to render. Currently using:
assigns = {'page_name' => 'test'}
@layout = Liquid::Template.parse(File.new(@theme.layout.path).read)
@template = Liquid::Template.parse(File.new(self.templa...
looking to use rspec to test liquid templates. Anyone tried this? Is it possible.
Specifically our app allows users to submit a set of templates and I'd like to be able to write integration tests to validate these templates.
Alternative solutions/approaches welcome..
...
I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really to tag my posts.
I can tag a post by using the YAML front matter, but how do I generate pages for each tag that can will list all posts for a tag?
...
Is there a way to just pull the year (or any other element... month, day, etc) from the site.time property that is available to your template file in Jekyll?
Right now it returns, for example: Sat Dec 19 14:07:03 -0700 2009
Any help is appreciated. Thanks!
...
I'm tring to do a loop for Nav links below my posts. This is going into the _layout of posts.html
I can't get the link to not show if the post is the last or the first. Any help would be awesome.
{% for post in site.posts %}
{% if post.previous != forloop.last %}
Last
{% elsif post.next != forloop.first %}
...
Im trying to use Liquid Template Language in my Rails Application, i've watched Ryan Bates' video over at rails cast, i pretty much follow the instructions but it just doesnt seem to work!
When I try something like
@template = Liquid::Template.parse("Hi {{name}}")
@template.render('name' => 'toby')
I get
hi toby
but when i try so...
I'm working on a Jekyll site and am trying to output three column divs nested in a row div. Liquid makes this pretty easy with their cycle filter:
{% for p in site.categories.post %}
{% cycle 'add rows': '<div class="row">', nil, nil %}
<div class="column">
<a href="{{ p.url }}">{{ p.title }}</a>
</div>
...
I trying to use Liquid template engine plugin , but I 'm getting the following error while controller tries to render a .liquid template .
"undefined method `call' for LiquidView:Class"
product_controller.rb
@product = Product.find(:first)
render :layout=> false, :template=> "product/show.liquid"
product/show.liquid
Product name : {{p...
I managed to make a little hack to make will_paginate work with liquid:
http://gist.github.com/426737
I wonder if this is safe? Ideas?
...
I'm using Jekyll to create a new blog. It uses Liquid underneath.
Jekyll defines certain "variables": site, content, page, post and paginator. These "variables" have several "members". For instance, post.date will return the date of a post, while post.url will return its url.
My question is: can I access a variable's member using anoth...
My blog, powerred by Jekyll, serves out a Atom feed.
---
layout: nill
rooturi: http://stefan.artspace44.com
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
...
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ page.rooturi }}{{ post.url }}" />
<u...
Hi All,
I'm planning to develop a CMS with ruby/rails. One of the main key features that I'm planning is to give the user to edit their layout (I'm planning to do this through liquid)
meanwhile i have red some good articles on HAML and SaaS. So just wondering whether i can use
haml + liquid + sass for my work
If possible i would thank...
I'm using Liquid markup in a Rails project that I'm working on, and I'm trying to create a link_to filter.
I'd like to be able to generate templates such as the following:
<ul>
{% for page in edition.pages %}
<li>{{page | link_to_page}}</li>
{% endfor %}
</ul>
Where I could use polymorphic routes to generate the link based on t...
I'm trying to output the following from within a liquid template:
{{ example }}
Obviously, Liquid sees this as a variable named example and tries to do substitution. I'm trying to find out how I can output the actual braces.
So far, I've found one method that works, but it's incredibly ugly:
{{ '{example'|prepend:'{' }}}}
Yeah, to...
Ive been working on this for 2 days now and its alittle out of my league, I was hoping a cyber samaritan could help me out.
So shopify has assets that you upload then call upon them in your html and liquid coding. As far as I understand the html section goes in the theme.liquid part and to display the slider on the front page the jQuer...
This sounds very easy, however I couldn't find it anywhere in the docs. How can I write {% this %} in a liquid template, without it being processed by the engine?
...
I'm trying to deploy my RoR app. It seems to be working fine on my development machine when RAILS_ENV is set to development. However, when I put it on the production server and set it into production mode I get the following error after navigating to the start page:
=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0....