The Chicago Boss API is still experimental and subject to change!
Chicago Boss liked Django's templating language so much, he decided to steal it. Template files go in your project's View folder, and will have access to the variables you pass from your Controller.
Almost all of Django's tags are implemented, including the ones for template inheritance. In addition, the following filters are available to Chicago Boss:
| add | Adds a number to the value. |
| capfirst | Capitalizes the first character of the value. |
| center | Centers the value in a field of a given width. |
| date | Formats a date according to the given format. |
| escapejs | Escapes characters for use in JavaScript strings. |
| first | Returns the first item in a list. |
| fix_ampersands | Replaces ampersands with & entities. |
| force_escape | Applies HTML escaping to a string. |
| join | Joins a list with a given separator. |
| last | Returns the last item in a list. |
| length | Returns the length of the value. |
| length_is | Returns True iff the value's length is the argument. |
| linebreaksbr | Converts all newlines to HTML line breaks. |
| ljust | Left-aligns the value in a field of a given width. |
| lower | Converts a string into all lowercase. |
| rjust | Right-aligns the value in a field of a given width. |
| upper | Converts a string into all uppercase. |
| urlencode | Escapes a value for use in a URL. |