Fayland 林 > Foorum-1.001000 > Foorum::Plugin::FoorumUtils

Download:
Foorum-1.001000.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.001000   Source  

NAME ^

Foorum::Plugin::FoorumUtils - pollute $c by Foorum

FUNCTIONS ^

load_once

Multi-times [% c.load_once('jquery.js') %] would only write one script tag in TT.

It is a trick for INCLUDE tt.html may call the same script src many times.

so does css. [% c.load_once('default.css') %]

We insert before the 'jquery.js' with [% c.config.dir.js %] and the 'default.css' with [% c.config.dir.static %]/css

AUTHOR ^

Fayland Lam <fayland at gmail.com>

syntax highlighting: