if I put & into a mustache template, it is rendered as & - what's going on? i want &. Any way to get it?
Tried unsuccessfully to escape it.
Ted
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
|
|
|
Benoît PeccatteResponsable cloud development Normation |
|
|
|
|
| 87, Rue de Turbigo, 75003 Paris, France | |
| Phone: | +33 (0)1 85 08 48 96 |
|
|
|
> Yes, right. But there's no way to turn it off for the whole document,
> which IIUC is what Aleksey was asking.
Perzactly. Thanks for translating!:-)
If someone (Aleksey or Nick or whoever wants this) could define the
desired behavior in a Redmine ticket, it would probably be the fastest
way to get it done. FWIW I agree in our domain we shouldn't have HTML
escaping by default.
cf-agent -KIf ./mustache_html_escape.cf -DAUTO,DEBUG [±master ●▴]
info: Deleted file '/tmp/TEST.cfengine'
info: Created file '/tmp/TEST.cfengine', mode 0600
info: Updated rendering of '/tmp/TEST.cfengine' from template mustache template '/home/nickanderson/CFEngine/core/tests/acceptance/10_files/templating/./mustache_html_escape.cf.mustache'
R: Rendering template file /home/nickanderson/CFEngine/core/tests/acceptance/10_files/templating/./mustache_html_escape.cf.mustache to /tmp/TEST.cfengine using /home/nickanderson/CFEngine/core/tests/acceptance/10_files/templating/./mustache_html_escape.cf.json
R: expect: '& == &
& ~= &
'
R: actual: '& == &
& ~= &
'
R: /home/nickanderson/CFEngine/core/tests/acceptance/10_files/templating/./mustache_html_escape.cf Pass
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
{{{name}}}.