App::ZofCMS::Plugin::Doctypes - include DOCTYPEs in your pages without remembering how to spell them
In your Main Config file:
template_defaults => { plugins => [ qw/Doctypes/ ], },
In your HTML::Template files
<tmpl_var name="doctype HTML 4.01 Strict">
If you are like me you definitely don't remember how to properly spell out the DOCTYPE (DOCument TYPE definition) in your pages and always rely on your editor or look it up. Well, fear no more! This little module contains all the common DTDs and will stuff them into {t} ZofCMS template's special key for you to use.
{t}
Below are examples of <tmpl_var name=""> that will be substituted into the actual doctypes. The names of the doctypes correspoding to each of those examples are self explanatory. Note: the plugin has two modes (for now). The basic mode is the default one, it will make only DTDs available under BASIC section. The extra mode will include more doctypes.
<tmpl_var name="">
BASIC
To enable the extra mode: in your ZofCMS template, but most likely you'd want that in your main config file:
plugin_doctype => { extra => 1 },
This would be the first-level key in ZofCMS template as well as main config file.
<tmpl_var name="doctype HTML 4.01 Strict"> <tmpl_var name="doctype HTML 4.01 Transitional"> <tmpl_var name="doctype HTML 4.01 Frameset"> <tmpl_var name="doctype XHTML 1.0 Strict"> <tmpl_var name="doctype XHTML 1.0 Transitional"> <tmpl_var name="doctype XHTML 1.0 Frameset"> <tmpl_var name="doctype XHTML 1.1"> <tmpl_var name="doctype HTML5">
<tmpl_var name="doctype XHTML Basic 1.0"> <tmpl_var name="doctype XHTML Basic 1.1"> <tmpl_var name="doctype HTML 2.0"> <tmpl_var name="doctype HTML 3.2"> <tmpl_var name="doctype MathML 1.01"> <tmpl_var name="doctype MathML 2.0"> <tmpl_var name="doctype XHTML + MathML + SVG"> <tmpl_var name="doctype SVG 1.0"> <tmpl_var name="doctype SVG 1.1 Full"> <tmpl_var name="doctype SVG 1.1 Basic"> <tmpl_var name="doctype SVG 1.1 Tiny"> <tmpl_var name="doctype XHTML + MathML + SVG Profile (XHTML as the host language)"> <tmpl_var name="doctype XHTML + MathML + SVG Profile (Using SVG as the host)">
Fork this module on GitHub: https://github.com/zoffixznet/App-ZofCMS
To report bugs or request features, please use https://github.com/zoffixznet/App-ZofCMS/issues
If you can't access GitHub, you can email your request to bug-App-ZofCMS at rt.cpan.org
bug-App-ZofCMS at rt.cpan.org
Zoffix Znet <zoffix at cpan.org> (http://zoffix.com/, http://haslayout.net/)
You can use and distribute this module under the same terms as Perl itself. See the LICENSE file included in this distribution for complete details.
LICENSE
To install App::ZofCMS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ZofCMS
CPAN shell
perl -MCPAN -e shell install App::ZofCMS
For more information on module installation, please visit the detailed CPAN module installation guide.