README.md

CFJAVSCRIPT

Attributes

A single ( or an array of ) relative path that point to the js files to be compressed.
Path must be relative and inside the context web root.

path

String

false

/_cfjavascript

A relative path that will be used to store the compressed file and to serve it to the web server.
If not provided a directory called /_cfjavascript will be created and used.

filename

String

false

If provided give the name to the js generated file. Filename must be unique in the choosen 'path' ( or per project
if a single path is used all along the project ). Tag will check if a file exists when decide if generated a new compression
or serving a cached copy. If not provided an hash is used.

cache

boolean

false

true

If true the compression is done once for any different sets or src paths. From this point the saved file will be served
to the web server.
Set this to false if you want to force the tag to generate a new compressed file
( you can obtain the same result adding '_cfjavascript_nocache' to the url ).

debug

boolean

false

false

If true the tag will output the files as originally are. The src array order is respected.You can obtain the same result adding '_cfjavascript_debug' to the url.
This is incredibly usefull for js debugging.

linebreak

Numeric

false

800

The linebreak option is used in that case to split long lines after a specific column.
It can also be used to make the code more readable, easier to debug (especially with the MS Script Debugger)
Specify 0 to get a line break after each semi-colon in JavaScript, and after each rule in CSS.

CFSTYLESHEET

Attributes

A single ( or an array of ) relative path that point to the css files to be compressed.
Path must be relative and inside the context web root.

path

String

false

/_cfstylesheet

A relative path that will be used to store the compressed file and to serve it to the web server.
Css files need to point to external resources as images.... The path should be the same of the original files so to be
sure do not break css dependencies

filename

String

false

If provided give the name to the js generated file. Filename must be unique in the choosen 'path' ( or per project
if a single path is used all along the project ). Tag will check if a file exists when decide if generated a new compression
or serving a cached copy. If not provided an hash is used.

cache

boolean

false

true

If true the compression is done once for any different sets or src paths. From this point the saved file will be served
to the web server.
Set this to false if you want to force the tag to generate a new compressed file
( you can obtain the same result adding '_cfjavascript_nocache' to the url ).

debug

boolean

false

false

If true the tag will output the files as originally are. The src array order is respected.You can obtain the same result adding '_cfjavascript_debug' to the url.
This is incredibly usefull for js debugging.

linebreak

Numeric

false

800

The linebreak option is used in that case to split long lines after a specific column.
It can also be used to make the code more readable, easier to debug (especially with the MS Script Debugger)
Specify 0 to get a line break after each semi-colon in JavaScript, and after each rule in CSS.