- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: changing the token delimiters inside the templates
- Date: Fri, 21 Dec 2012 13:09:19 -0800
On Friday, December 21, 2012 at 12:53 PM, Vladimir Girnet wrote:
Chef is using standard Ruby ERB for templates -
http://ruby-doc.org/stdlib-1.8.7/libdoc/erb/rdoc/ERB.html
On Dec 21, 2012, at 10:41 PM, Maven User wrote:
Hi all -
Is there a way to change the token delimiters chef uses inside the templates to some other format?
Just curious - this would make my life 300% easier if this were true...
Chef actually uses erubis which is mostly compatible but has some extra features:
http://www.kuwata-lab.com/erubis/users-guide.html
If you're looking to, say, include a literal `<%` in your output, according to the docs this can be done with `<%%`.
The docs also explain how to change the "embedding pattern" but chef doesn't expose any way to change it:
http://www.kuwata-lab.com/erubis/users-guide.02.html#tut-pattern
Archive powered by MHonArc 2.6.16.