Issue #1222 has been updated by luke.

Status changed from Accepted to Needs design decision

Seems like this is a dupe of #1177; closing as such.
----------------------------------------
Feature #1222: Evaluate variables in tempates (similar to if defined in a 
manifest)
http://reductivelabs.com/redmine/issues/show/1222

Author: ohadlevy
Status: Needs design decision
Priority: Normal
Assigned to: community
Category: newfeature
Target version: 
Keywords: 
Complexity: Unknown
Patch: None
Affected version: 


I'm looking for a way to evaluate a variable inside a template.
so far the only way I could think of implementing it would be:

in the manifest:


<pre>
klass="abc"
</pre>


in the template:

<pre>

<%
begin
   classname = klass
rescue
   classname = "Unknown"
end
-%>
<% if classname = "abc" %>
something
<% end %>
</pre>


it should be possible to use in a template:

<pre>
<& if defined(klass) &>
something
<% end %>
</pre>




----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to