Navigation Menu

Skip to content

Commit

Permalink
Add build status to read me
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Jones committed Jun 1, 2014
1 parent df4d2bb commit 743d918
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.markdown
@@ -1,5 +1,7 @@
# DotLiquid

[![Build status](https://ci.appveyor.com/api/projects/status/itsl3a6ludjah4o3)](https://ci.appveyor.com/project/tgjones/dotliquid)

### What is this?

DotLiquid is a .NET 3.5 port of the popular [Ruby Liquid templating language](http://www.liquidmarkup.org). It is a separate project that aims to retain the same template syntax as the original, while using .NET coding conventions where possible.
Expand Down Expand Up @@ -37,4 +39,4 @@ For more information about the original Liquid project, see <http://www.liquidma
DotLiquid supports a very simple API based around the DotLiquid.Template class. Generally, you can read the contents of a file into a template, and then render the template by passing it parameters in the form of a `Hash` object. There are several ways you can construct a `Hash` object, including from a Dictionary, or using the `Hash.FromAnonymousObject` method.

Template template = Template.Parse("hi {{name}}"); // Parses and compiles the template
template.Render(Hash.FromAnonymousObject(new { name = "tobi" })); // => "hi tobi"
template.Render(Hash.FromAnonymousObject(new { name = "tobi" })); // => "hi tobi"

0 comments on commit 743d918

Please sign in to comment.