0.0
No commit activity in last 3 years
No release in over 3 years
text template like erb that can be used with opal
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.7.9
~> 0.1
~> 10.0
~> 3.4
~> 0.11
~> 0.9.11
 Project Readme

Gem Gem Gemnasium Inch CI Travis Build Status AppVeyor Build Status codecov.io Code Climate

text template like erb that can be used with opal

Installation

Add this line to your application's Gemfile:

gem 'nano_template'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nano_template

Usage

require 'nano_template'
require 'ostruct'

nano_template = NanoTemplate.new
proc = nano_template.template("<%= foo %>bar")
stash = OpenStruct.new({foo: 42})
p proc.call(stash) # "42bar"

API

API Document

License

This is released under MIT License.