Project
template_refi
it does not allow the execution of arbitrary code
templates may contain functions calls of the form \\-function_name(coma,seperated,list,of,minival,values)
"minival" is a variable parser (see gem "minival_refi")
(last time I checked one argument was mandatory (suggestion: "\\-fun_without_args(nil)" ))
usage:
include Refi
template = Template.new(template_string)
chunks = template.get_chunks()
"chunks" is an array containing the text of the template as strings and the function calls as hashes {fun_name => [list,of,arguments]}
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Development
Dependencies
Runtime
= 0.1.0