App::ZofCMS::Plugin::LinksToSpecs::CSS - easily include links to properties in CSS2.1 specification
In your ZofCMS template:
plugins => [ qw/LinksToSpecs::CSS/ ],
In your HTML::Template template:
See: <tmpl_var name="css_text-align"> for text-align property<br> See: <tmpl_var name="css_display"> for display propery<br> <tmpl_var name="css_float_p"> is quite neat
The module is a plugin for ZofCMS which allows you to easily link to CSS properties in CSS2.1 specification. Personally, I use it when writing my tutorials, hopefully it will be useful to someone else as well.
The only thing you'd need in your ZofCMS template is to add the plugin into the list of plugins to execute.
To include links to CSS properties in your HTML code you'd use <tmpl_var name="">. The plugin provides four "styles" of links which are presented below. The PROP stands for any CSS property specified in CSS2.1 specification, LINK stands for the link pointing to the explaination of the given property in CSS specification. Note: everything needs to be lowercased:
<tmpl_var name="">
PROP
LINK
<tmpl_var name="css_PROP"> <a href="LINK" title="CSS Specification: 'PROP' property"><code>PROP</code></a> <tmpl_var name="css_PROP_p"> <a href="LINK" title="CSS Specification: 'PROP' property"><code>PROP</code> property</a> <tmpl_var name="css_PROP_c"> <a href="LINK" title="CSS Specification: 'PROP' property">PROP</a> <tmpl_var name="css_PROP_cp"> <a href="LINK" title="CSS Specification: 'PROP' property">PROP property</a>
The plugin also has links for :after, :hover, etc. pseudo-classes and pseudo-elements; in this case, the rules are the same except in the output word "property" would say "pseudo-class" or "pseudo-element".
:after
:hover
http://w3.org/Style/CSS/
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.