twig
dependency in your project in order to use it.Twig_Environment
instance.init
function call, so you call add Twig plugins, filters and functions, for example, adding Siler\Http\url
into Twig's Environment to later reference static assets on the public folder:false
):render
at Twig namespace:Twig\render
. So remember that Twig\render
will only return the rendered template within its given data and you should explicit output or let Response
do it: