Sha256: c5330f39c7def5cad6b3cd106bc341fcb8cf10619b99300af9bb7cfd5bc633a6

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

# Simple::Hash

safe simple way to render a liquid template

## installation

    $ gem install simple-liquid

**or**

```ruby
gem 'simple-liquid'
```

    $ bundle

## usage

```ruby
Simple::Liquid.render('hello {{ name | default: "?" }}', { name: nil })
# => hello ?

Simple::Liquid.render('hello {{ location }}', { name: "0xfabe" })
# => Simple::Liquid::Error (undefined variable location)

Simple::Liquid.render('hello {{ location }} {{ something }}', { name: "0xfabe" })
# => Simple::Liquid::Error (undefined variable location, undefined variable something)

Simple::Liquid.render("{{ a | oops }}", { a: 1 })
# => Simple::Liquid::Error (undefined filter oops)
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple-liquid-1.1.0 README.md
simple-liquid-1.0.0 README.md