Skip to content

Commit 90d1bc2

Browse files
DBATobias Lütke
authored andcommitted
History
- updated (2.2.0 & 2.2.1) Manifest - updated readme reference Readme - Converted to markdown - cleaned up Gemspec - updated to 2.2.1
1 parent c00a650 commit 90d1bc2

File tree

5 files changed

+56
-43
lines changed

5 files changed

+56
-43
lines changed

History.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2.2.1 / 2010-08-23
2+
3+
* Added support for literal tags
4+
5+
2.2.0 / 2010-08-22
6+
7+
* Compatible with Ruby 1.8.7, 1.9.1 and 1.9.2-p0
8+
* Merged some changed made by the community
9+
110
1.9.0 / 2008-03-04
211

312
* Fixed gem install rake task

Manifest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CHANGELOG
22
History.txt
33
MIT-LICENSE
44
Manifest.txt
5-
README.txt
5+
README.md
66
Rakefile
77
init.rb
88
lib/extras/liquid_view.rb

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Liquid template engine
2+
3+
## Introduction
4+
5+
Liquid is a template engine which I wrote for very specific requirements
6+
7+
* It has to have beautiful and simple markup. Template engines which don't produce good looking markup are no fun to use.
8+
* It needs to be non evaling and secure. Liquid templates are made so that users can edit them. You don't want to run code on your server which your users wrote.
9+
* It has to be stateless. Compile and render steps have to be seperate so that the expensive parsing and compiling can be done once and later on you can just render it passing in a hash with local variables and objects.
10+
11+
## Why should I use Liquid
12+
13+
* You want to allow your users to edit the appearance of your application but don't want them to run **insecure code on your server**.
14+
* You want to render templates directly from the database
15+
* You like smarty (PHP) style template engines
16+
* You need a template engine which does HTML just as well as emails
17+
* You don't like the markup of your current templating engine
18+
19+
## What does it look like?
20+
21+
<pre>
22+
<ul id="products">
23+
{% for product in products %}
24+
<li>
25+
<h2>{{product.name}}</h2>
26+
Only {{product.price | price }}
27+
28+
{{product.description | prettyprint | paragraph }}
29+
</li>
30+
{% endfor %}
31+
</ul>
32+
</pre>
33+
34+
## Howto use Liquid
35+
36+
Liquid supports a very simple API based around the Liquid::Template class.
37+
For standard use you can just pass it the content of a file and call render with a parameters hash.
38+
39+
<pre>
40+
@template = Liquid::Template.parse("hi {{name}}") # Parses and compiles the template
41+
@template.render( 'name' => 'tobi' ) # => "hi tobi"
42+
</pre>

README.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.

liquid.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Gem::Specification.new do |s|
22
s.name = %q{liquid}
3-
s.version = "2.1.3"
3+
s.version = "2.2.1"
44

55
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
66
s.authors = ["Tobias Luetke"]
77
s.description = %q{A secure, non-evaling end user template engine with aesthetic markup.}
88
s.email = %q{[email protected]}
9-
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
10-
s.files = ["CHANGELOG", "History.txt", "MIT-LICENSE", "Manifest.txt", "README.txt", "Rakefile", "lib/extras/liquid_view.rb", "lib/liquid.rb", "lib/liquid/block.rb", "lib/liquid/condition.rb", "lib/liquid/context.rb", "lib/liquid/document.rb", "lib/liquid/drop.rb", "lib/liquid/errors.rb", "lib/liquid/extensions.rb", "lib/liquid/file_system.rb", "lib/liquid/htmltags.rb", "lib/liquid/module_ex.rb", "lib/liquid/standardfilters.rb", "lib/liquid/strainer.rb", "lib/liquid/tag.rb", "lib/liquid/tags/assign.rb", "lib/liquid/tags/capture.rb", "lib/liquid/tags/case.rb", "lib/liquid/tags/comment.rb", "lib/liquid/tags/cycle.rb", "lib/liquid/tags/for.rb", "lib/liquid/tags/if.rb", "lib/liquid/tags/ifchanged.rb", "lib/liquid/tags/include.rb", "lib/liquid/tags/unless.rb", "lib/liquid/template.rb", "lib/liquid/variable.rb"]
9+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.md"]
10+
s.files = ["CHANGELOG", "History.txt", "MIT-LICENSE", "Manifest.txt", "README.md", "Rakefile", "lib/extras/liquid_view.rb", "lib/liquid.rb", "lib/liquid/block.rb", "lib/liquid/condition.rb", "lib/liquid/context.rb", "lib/liquid/document.rb", "lib/liquid/drop.rb", "lib/liquid/errors.rb", "lib/liquid/extensions.rb", "lib/liquid/file_system.rb", "lib/liquid/htmltags.rb", "lib/liquid/module_ex.rb", "lib/liquid/standardfilters.rb", "lib/liquid/strainer.rb", "lib/liquid/tag.rb", "lib/liquid/tags/assign.rb", "lib/liquid/tags/capture.rb", "lib/liquid/tags/case.rb", "lib/liquid/tags/comment.rb", "lib/liquid/tags/cycle.rb", "lib/liquid/tags/for.rb", "lib/liquid/tags/if.rb", "lib/liquid/tags/ifchanged.rb", "lib/liquid/tags/include.rb", "lib/liquid/tags/unless.rb", "lib/liquid/template.rb", "lib/liquid/variable.rb"]
1111
s.has_rdoc = true
1212
s.homepage = %q{http://www.liquidmarkup.org}
13-
s.rdoc_options = ["--main", "README.txt"]
13+
s.rdoc_options = ["--main", "README.md"]
1414
s.require_paths = ["lib"]
1515
s.rubyforge_project = %q{liquid}
1616
s.rubygems_version = %q{1.3.1}

0 commit comments

Comments
 (0)