what exactly is haswidgets and widgets in bolt (or twig)??
Posted: Thu Sep 15, 2016 8:05 am
I was just going through the Default theme of bolt CMS, and i came actoss the following lines of code:
I googled `twig haswidgets` and also `twig widgets` , but i could't find anything.
can somebody explain what these two methods are ? and what exactly do they do ?
Thank you.
Code: Select all
{% if haswidgets('aside_top') %}
{{ widgets('aside_top') }}
{% else %} can somebody explain what these two methods are ? and what exactly do they do ?
Thank you.