- henrik
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/lg7hfc%24amu%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/534D7CBD.5030905%40cpan.org.
For more options, visit https://groups.google.com/d/optout.
There hasn't been any discussion on this as far as I can see. The functionality is in the 3.5.0 version that we had to pull, and it will also be in 3.5.1 that we should be releasing soon. If anyone has any comments please let us know. The design of this is still open for change until we reach puppet 4, where the new language system will become the default and any more changes to this will become more difficult.
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/3c46642a-5ede-42e5-ac69-7a8ac438ea43%40googlegroups.com.
On 04/15/2014 12:28 PM, John Bollinger wrote:
>
> You are complaining about a problem partially of your own making: you break
> up the Ruby a lot more than you need to do. Obviously you *can* do it like
> that, but why?
I find it's difficult to comprehend nested code intermixed with lines
that start with markup tags.
Another way to improve it would be if the % and-or <> flags were passed to the ERB builder. % enables Ruby code processing for lines beginning with %. <> omit newline for lines starting with <% and ending in %>. They would allow you to skip a lot of the <%- -%> tags.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAAAzDLc_ZZxfrSfb5XjK6XTLqttcZDXFKG5Zc2a0BrLKMVs_3A%40mail.gmail.com.
On Tue, Apr 15, 2014 at 1:20 PM, Erik Dalén <erik.gus...@gmail.com> wrote:
Another way to improve it would be if the % and-or <> flags were passed to the ERB builder. % enables Ruby code processing for lines beginning with %. <> omit newline for lines starting with <% and ending in %>. They would allow you to skip a lot of the <%- -%> tags.
I'm not too keen on this. I think that I'd rather keep the single way to do it instead of branching out into various aliases for functionality.
I am considering Joshua's request for the concat function. It would provide a way to emit text from within the embedded code in the template, and might help in some situations. But it another case where it adds a bit of special stuff to do something that that already be achieved with a little refactoring.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANhgQXvka6QBhdx2unib-6pW7nspTbeT0VEkKZ_ZVG3SpJOD1Q%40mail.gmail.com.
"There is however no protection against users creating resources inside
the template (nor if they do this via function calls to `create_resources`).
There is also no protection against realizing/collecting resources."
If someone chooses to use these questionable expressions inside a template, there is no real harm;
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/lj5ofk%24kqb%241%40ger.gmane.org.
- henrik
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/lg7hfc%24amu%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Is there any syntax validation tool available for this? Will something like "puppet parser validate --parser=future" just work on epp files?I'm looking for some equivalent to "erb -x file.erb | ruby -c".
--On 17 March 2014 20:12, Henrik Lindberg <henrik....@cloudsmith.com> wrote:
In 3.5.0, the ARM-3 Puppet Templates feature is available when using --parser future.
The ARM-3 text has been updated to reflect the implementation.
Since already published Armature documents are difficult to comment on, the same text is available for comments here: https://docs.google.com/a/puppetlabs.com/document/d/1JzDDvSYD3qgeTr6a3H0Ur8GHNVLepyJMLid9YHLgYVg/edit#
If you just want a short introduction, you can read my blog post
about Puppet Templates here: http://puppet-on-the-edge.blogspot.se/2014/03/templating-with-embedded-puppet.html
I hope you enjoy the new functionality, and I am looking forward to feedback if you like the new features EPP templates bring.
The idea is to make Puppet Templates a standard feature in Puppet 4.0
Regards
- henrik
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/lg7hfc%24amu%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Erik Dalén
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CAAAzDLc7cj8ECEWZu%2BeJxshtxpNEn07Sfb92G8O%2Bt%2BEHCtK60Q%40mail.gmail.com.