This shows you the differences between two versions of the page.
en:public:developer:template_system:tags:parameters:hexencode [2012/11/27 15:03] igor |
en:public:developer:template_system:tags:parameters:hexencode [2013/01/28 17:19] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Hexencode ===== | + | ====== Hexencode ====== |
- | Parameter "hexencode" defines that the content of corresponding variable (or result of function) must be represented in the HEX-view. It means that each character will be changed with its own hexadecimal value. For example, character "b" will be changed with 62. | + | Parameter "hexencode" defines that the content of corresponding variable (or result of function) |
+ | must be represented in the HEX-view. It means that each character will be changed with its own | ||
+ | hexadecimal value. For example, character "b" will be changed with 62. | ||
+ | |||
+ | **NOTE:** By default the resulting content will be parsed (all <#..> tags will be evaluated) before to apply | ||
+ | this filter. You can control this behavior throught the parameter | ||
+ | [[en:public:developer:template_system:tags:parameters:AnalyzeTagParams]] | ||
+ | |||
+ | ==== Values ==== | ||
+ | |||
+ | ^ Value ^ Description ^ | ||
+ | | <html><span style="color:#008000">1</span></html> | Means that value must be hex-encoded. | | ||
+ | | <html><span style="color:#008000">0</span></html> | Means that value must be hex-decoded. | | ||
==== Example ==== | ==== Example ==== | ||
- | <#Var name="TestVar" value="hello"> | + | <code> |
+ | <#TestVar setValue="hello"> | ||
<#TestVar hexencode="1"> | <#TestVar hexencode="1"> | ||
+ | </code> | ||
==== Output ==== | ==== Output ==== | ||
+ | <code> | ||
68656c6c6f | 68656c6c6f | ||
+ | </code> |