|
OpenXPKI::Template::Plugin::UtilsPlugin for Template::Toolkit providing some string manipulation functions.How to useYou need to load the plugin into your template before using it. As we do not export the methods, you need to address them with the plugin name, e.g.[% USE Utils %] [% Utils.ascii_to_hex(value) %] Will output the converted string. MethodsuuidGenerate a UUID v3 string (e.g. 4162F712-1DD2-11B2-B17E-C09EFE1DC403) This is simply a wrapper around Data::UUID->gen_str. ascii_to_hex Convert a ascii string to its hexadecimal representation, e.g. "OpenXPKI" becomes 4f70656e58504b49. to_base64 ( text ) Encode the given (binary) data using Base64 encoding, output is without linebreaks or spaces.
Visit the GSP FreeBSD Man Page Interface. |