<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 28, 2015 at 11:52 AM, Evgeniy L <span dir="ltr"><<a href="mailto:eli@mirantis.com" target="_blank">eli@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alexander, I don't agree with your statements<div><br></div><div><span class=""><div>>> [1] - I just uses <% and %> to substitute values.</div><div><br></div></span><div>It's what templating is about, you have some text preprocessor to substitute values.</div></div></div></blockquote><div><br></div><div>Network templates feature don't mean any  "text preprocessor" actions. Only value substitutions</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class=""><div></div><div>>> That is not ERB style template language.</div><div><br></div></span><div>ERB uses the same syntax, hence it Is ERB style.</div></div></div></blockquote><div><br></div><div>... hence it looks like ERB. not more. </div><div>Not only ruby used for programming. Non only EBD -- is template language. ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class=""><div>>> [2] - We are not using Jinja templating (it is just yaml file, not html template), we are using Jinja placeholder substitution.<br></div><div><br></div></span><div><div>We *are using* jinja templating (I don't understand why you mention here html),</div><div>with all it's features and here is the proof [1].</div></div></div></div></blockquote><div><br></div><div>We don't promise use Junja (or whatever) template language for this feature.</div><div>If some jinja features allowed for parsing Network template -- it's a bug. We should check it and fix it. </div><div>Only value substitutions should allow in the network templates.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class=""><div>>> [3] - <span class="il">Templates</span> are for people who do not care about Jinja/ERB (maybe some familiar with Puppet/Chef), so no confusion.<br></div></span></div><div><br></div><div>That is not correct, every template has it's own syntax, so people have to care about</div><div>specific implementation i.e. Jinja or ERB, and there will be confusion when somebody will</div><div>try to use ERB specific features, and she/he will fail because you hide Jinja under ERB</div><div>syntax.</div></div></blockquote></div><div class="gmail_extra"><br></div>I, partially, agree with you. But please honored to following facts:</div><div class="gmail_extra">* In the deployers world used Jinja and ERB syntax. </div><div class="gmail_extra">* ERB used more often, because Ansible (I don't know another popular deployers tools with Jinja templating) is to young.<br>* <span style="font-size:12.8000001907349px">Plenty of syntax features is a really hell.</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">In the Network templates we don't suppose anything other than a simple substitution variable values. </div><div class="gmail_extra">All logic of template processing implementing on Nailgun side. Now on the template parsing, later -- on the network manipulation class. </div><div class="gmail_extra">Allowance of mix template language and Nailgun logic may lead to heavy diagnostic issues. </div><div class="gmail_extra">Meantime I don't see any cases, where required something more, than substitution.<br></div><div class="gmail_extra"><br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br><div>/sv</div></div></div></div>
</div></div>