Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outputting braces when there not a patTemplate var #1

Open
ichilver opened this issue Apr 14, 2021 · 0 comments
Open

outputting braces when there not a patTemplate var #1

ichilver opened this issue Apr 14, 2021 · 0 comments

Comments

@ichilver
Copy link

I need to output braces as part of the file.

Example of template

<pattemplate:tmpl name="page">
  // Some stuff here   
  options {   
   listen-on { {LISTEN_ON} };   
  };   
  // Some stuff here   
</pattemplate:tmpl>  

I need the output to look like

  // Some stuff here
  options {
   listen-on { 10.10.10.1,10.10.10.2 };
  };
  // Some stuff here

However what I actually get is

  // Some stuff here
  options {
   listen-on ;
  };
  // Some stuff here

As you can see I get some of the curly braces but others.

I tried changing the line in the template

<pattemplate:tmpl name="page">   
  // Some stuff here   
  options {   
   listen-on { <patTemplate:var name="LISTEN_ON"/> };   
  };   
  // Some stuff here   
</pattemplate:tmpl>   

But still the same result.

I tried doing { and } on the braces I needed but nothing.

Ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant