Jelix 1.6.37

block.jscompress.php

Compress JS in templates

Tags
subpackage

jtpl_plugin

version
1
author

Hadrien Lanneau

copyright

2008 Hadrien.eu

Table of Contents

jtpl_block_common_jscompress()  : string
jscompress : formate a js block code by removing spaces, tabs and returns.

Functions

jtpl_block_common_jscompress()

jscompress : formate a js block code by removing spaces, tabs and returns.

jtpl_block_common_jscompress(mixed $compiler, mixed $begin[, mixed $params = array() ]) : string

Example: {jscompress}var foo = bar;{/jscompress}

Parameters
$compiler : mixed
$begin : mixed
$params : mixed = array()
Return values
string

Search results