ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Liquid Syntax Error (Bug #1222)


Added by Chris Dähn at 2013-02-02 03:10 am. Updated at 2013-03-19 09:27 pm.


Status:Closed Start date:2013-02-02
Priority:Normal Due date:
Assignee:Holger Just % Done:

0%

Category:Wikis
Target version:-
Remote issue URL: Affected version:

Description

After upgrading to the latest version, one of the articles in my wiki (including some code samples) started showing this error:

[Liquid Syntax Error] Unknown tag 'autoescape'

I have 'autoescape' in some example code which is quoted in the article in < pre > tags. Where should I look for explanations?

The part which causes the error is most likely this one: http://pastebin.com/Yvy1vj5N

Discussion: https://www.chiliproject.org/boards/1/topics/2361?r=2368


Screenshot.jpg - Screenshot with error message (61.1 kB) Chris Dähn, 2013-02-02 03:10 am

production.log - Production log with debug messages enabled (15.9 kB) Chris Dähn, 2013-02-02 03:10 am


History

Updated by GDR! GDR! at 2013-02-02 01:32 pm

I've looked it up and judging by stack trace, it looks like Liquid Templating Language (http://liquidmarkup.org/ ) is used somewhere in chiliproject, and thinks it's its own command. It uses { % for control markup.

So I would guess that wiki code is not properly escaped before passing to template engine? Hard to say, I don't know ruby.

Updated by Felix Schäfer at 2013-02-02 01:57 pm

That's something Holger can better fix, as he did the liquid integration :-)

  • Assignee changed from Felix Schäfer to Holger Just

Updated by Holger Just at 2013-03-19 09:27 pm

We use Liquid in ChiliProject as an additional logic layer on top of Textile since ChiliProject 3.0. Liquid uses the {{ foo }} and {% foo %} syntax for its functionality.

Liquid doesn't adhere to textile code or pre-blocks, as that would cripple the expressiveness of the language. If you want to include text that parses as liquid verbatim, you have to wrap that in liquid {% raw %} tags. At the end of the escaped block you then have to add an endraw tag (that I can't include here verbatim as that would still be parsed as liquid...

So basically you can write something like this, with the underscores replaced with percent characters:

{_ raw _} my stuff {_ endraw _}

You can learn more about Liquid at the respective wiki page.

  • Target version deleted (3.8.0)
  • Status changed from Open to Closed

Also available in: Atom PDF