Module z_lib_include

Support for the {% lib filename ...

Copyright (c) 2009 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Support for the {% lib filename ... %} tag in the templates. Generates the or tag for css or js files. Also adds the greatest modification date so that updates are loaded by the browser.

Function Index

tag/2Generate the link and/or script tags for the given files.
tag/3Generate the link and/or script tags for the given files.
uncollapse/1Given the filepath of the request, return all files collapsed in the path.
url/2Generate a url with the given files.
url/3Generate a url with the given files.

Function Details

tag/2

tag(Files, Context) -> any()

Generate the link and/or script tags for the given files.

tag/3

tag(Files, Args, Context) -> any()

Generate the link and/or script tags for the given files.

uncollapse/1

uncollapse(Path::string() | binary()) -> list()

Given the filepath of the request, return all files collapsed in the path.

url/2

url(Files, Context) -> any()

Generate a url with the given files.

url/3

url(Files, Args, Context) -> any()

Generate a url with the given files.


Generated by EDoc, Dec 18 2014, 23:35:51.