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
dev:server_print_templates [2019/04/16 12:01] – [Proof of Concept] ericksondev:server_print_templates [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 18: Line 18:
   * Templates are compiled for printing on the server   * Templates are compiled for printing on the server
     * At print time, the caller passes template data, template name, etc. to the server and receives a compiled (text, html, etc.) response.     * At print time, the caller passes template data, template name, etc. to the server and receives a compiled (text, html, etc.) response.
-  * Template content can be scrubbed on the server+  * 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, so the general concept is not new.
  
 ==== Proof of Concept ==== ==== Proof of Concept ====
Line 31: 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.+  * 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.1555430509.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

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.