twig 5 star rating partial

Simple snippet/partial for a twig star rating with fontawesome

 

active language check

https://octobercms.com/plugin/rainlab-translate

some Twig functions / helper

Template function to generate asset URLs

Usage like this:

And here is the Twig function:

Template function for reading session value with dot annotation

Access session values within the template like this:

And here is the Twig function:

 

Twig asset helper

This function generates an URL for project assets.

Usage:

Here are other solutions:

http://silex.sensiolabs.org/doc/cookbook/assets.html