Name : perl-HTML-Blitz
| |
Version : 0.0901
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.3
| Date : 2024-08-05 18:04:25
|
Group : Unspecified
| Source RPM : perl-HTML-Blitz-0.0901-1.3.src.rpm
|
Size : 0.25 MB
| |
Packager : (none)
| |
Summary : High-performance, selector-based, content-aware HTML template engine
|
Description :
HTML::Blitz is a high-performance, CSS-selector-based, content-aware template engine for HTML5. Let\'s unpack that:
* You want to generate web pages. Those are written in HTML5.
* Your HTML documents are mostly static in nature, but some parts need to be filled in dynamically (often with data obtained from a database query). This is where a template engine shines.
(On the other hand, if you prefer to generate your HTML completely dynamically with ad-hoc code, but you still want to be safe from HTML injection and XSS vulnerabilities, have a look at HTML::Blitz::Builder.)
* Most template systems are content agnostic: They can be used for pretty much any format or language as long as it is textual.
HTML::Blitz is different. It is restricted to HTML, but that also means it understands more about the documents it processes, which eliminates certain classes of bugs. (For example, HTML::Blitz will never produce mismatched tags or forget to properly encode HTML entities.)
* The format for HTML::Blitz template files is plain HTML. Instead of embedding special template directives in the source document (like with most other template systems), you write a separate piece of Perl code that instructs HTML::Blitz to fill in or repeat elements of the source document. Those elements are targeted with CSS selectors.
* Having written the HTML document template and the corresponding processing rules (consisting of CSS selectors and actions to be applied to matching elements), you then compile them together into an HTML::Blitz::Template object. This object provides functions that take a set of input values, insert them into the document template, and return the finished HTML page.
This latter step is quite fast. See PERFORMANCE for details.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-H/openSUSE_Tumbleweed/noarch |