GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Server::API2::Plugin::UI::render_template(3) User Contributed Perl Documentation OpenXPKI::Server::API2::Plugin::UI::render_template(3)

OpenXPKI::Server::API2::Plugin::UI::render_template

Renders the given template with the given parameters.

This is just a wrapper around "render" in OpenXPKI::Template.

This is a workaround and should be refactored, see Github issue #283.

Parameters

  • "template" Str - template string including placeholders.
  • "params" HashRef - parameters to fill in the placeholders. Optional, default: "{}"
  • "trim" Bool - trim whitespaces at beginning and end of rendered string. Optional, default: 1

Renders the given template with the given parameters, the result is expected to be a valid YAML document and parsed as such.

The return value is a perl structure representing the YAML document.

Throws OpenXPKI::Exception if the template can not be rendered or the document can not be parsed. Returns undef if the document is empty.

Parameters

  • "template" Str - template string including placeholders.
  • "params" HashRef - parameters to fill in the placeholders. Optional, default: "{}"
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.