mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
bump
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -3,7 +3,7 @@ require 'rubygems'
|
||||
require 'rake'
|
||||
require 'hoe'
|
||||
|
||||
PKG_VERSION = "1.9.0"
|
||||
PKG_VERSION = "2.0.0"
|
||||
PKG_NAME = "liquid"
|
||||
PKG_DESC = "A secure non evaling end user template engine with aesthetic markup."
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ module Liquid
|
||||
#
|
||||
class Cycle < Tag
|
||||
SimpleSyntax = /^#{Expression}/
|
||||
NamedSyntax = /^(#{Expression})\s*\:\s*(.*)/
|
||||
NamedSyntax = /^(#{Expression})\s*\:\s*(.*)/
|
||||
|
||||
def initialize(tag_name, markup, tokens)
|
||||
case markup
|
||||
|
||||
@@ -345,8 +345,7 @@ HERE
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
def test_cycle
|
||||
|
||||
assert_template_result('one','{%cycle "one", "two"%}')
|
||||
@@ -355,6 +354,9 @@ HERE
|
||||
assert_template_result('one two one','{%cycle "one", "two"%} {%cycle "one", "two"%} {%cycle "one", "two"%}')
|
||||
|
||||
assert_template_result('text-align: left text-align: right','{%cycle "text-align: left", "text-align: right" %} {%cycle "text-align: left", "text-align: right"%}')
|
||||
|
||||
assert_template_result(' ','{% cycle "", "", "</tr><tr>" %}')
|
||||
assert_template_result(' </tr><tr> ','{% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %}')
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user