Templating - shift72/kibble GitHub Wiki
Any builtin function from JET is also available in kibble templates. The JET Wiki provides some helpful examples and lists of usable functions.
Renders the version of Kibble that rendered the current template.
<div>{{ version }}</div>
Renders the current language name
<div>{{ lang }}</div>
Renders the url path for a given item (film, bundle, episode, etc) slug.
<a href="{{routeToSlug("/film/1")}}">Link to a film</a>
<!-- more useful example -->
<a href="{{routeToSlug(film.Slug)}}">{{film.Title}}</a>
Renders the url path to a specific item (film, bundle, episode, etc) page. Will print an error if the path could not be found.
<a href="{{routeTo(film)}}">{{film.Title}}</a>
Prints the string value for a given config key.
A default value must be provided which will be returned if the key does not exist.
<div>{{config("site_name", "Example Site")}}</div>
Prints the number value for a given config key.
A default value must be provided which will be returned if the key does not exist.
<div>{{configInt("slider_item_genre_max", 3)}}</div>
Prints whether the specific feature toggle value is enabled or not.
Returns false if the feature toggle key doesn't exist.
{{if isEnabled("slider_item_genres")}}
<div>{{film.Genres.String()}}</div>
{{end}}