User Tools

Site Tools


dev:server_print_templates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
dev:server_print_templates [2019/04/16 12:36] – [Proposal: Server Templates] ericksondev:server_print_templates [2019/04/16 17:14] – [Proof of Concept] erickson
Line 20: Line 20:
   * Template content can be scrubbed on the server for added security.   * Template content can be scrubbed on the server for added security.
     * We could use something like https://metacpan.org/pod/HTML::Restrict to remove all but an anointed set of HTML tags and attributes (for text/html templates)     * We could use something like https://metacpan.org/pod/HTML::Restrict to remove all but an anointed set of HTML tags and attributes (for text/html templates)
-  * Note we are already using server-managed templates for self-checkout receipts, some ACQ interfaces, and various others.+  * Note we are already using server-managed templates for self-checkout receipts, some ACQ interfaces, and various others, so the general concept is not new.
  
 ==== Proof of Concept ==== ==== Proof of Concept ====
Line 32: Line 32:
     * There is no environment building, etc.     * There is no environment building, etc.
   * Provides an opportunity to add locale, content type, etc. support.   * Provides an opportunity to add locale, content type, etc. support.
-  * Uses a mod_perl front-end so template content can be treated like web page where desired and so the cross-walk to packaging the response as an opensrf message is bypassed.+  * Uses a mod_perl front-end so template content can be returned as-is (i.e. text/html page) avoiding the unnecessary opensrf packaging.
  
 ==== Offline Caveat ==== ==== Offline Caveat ====
dev/server_print_templates.txt · Last modified: 2022/02/10 13:34 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.