Application Framework Reference

Template Utilities API

stylesheet_tags()

The stylesheet_tags() method includes each of the specified files in link tags. This method is most useful if your view requires custom or third-party CSS.

Warning: Never inject user input into stylesheet_tags() calls.

Synopsis

stylesheet_tags( files , compile , media )

Parameters

files

Array

List of files to be included in link tags.

compile

Boolean

Deprectated

media

String

(Optional) Media type:
all
screen
print

Example

<%page args="h"/><%inherit file="//layout/view.html"/>
<%namespace name="lib" file="//lib.html" import="*"/>

<%lib:stylesheet_tags files="${['/static/css/foo.css', '/static/css/bar.css']}" />