{% include 'css-common.html' %} {% include 'js-common.html' %} {% include 'elements.html' %} {% for widget in config['widgets'] %} {% with name = widget['widget'] %} {% include 'widgets/' + name + '/index.html' %} {% with js_file = static_folder + '/js/widgets/' + name + '/index.js' %} {% if utils.isfile(js_file) %} {% endif %} {% endwith %} {% with css_file = static_folder + '/css/dist/dashboard/widgets/' + name + '.css' %} {% if utils.isfile(css_file) %} {% endif %} {% endwith %} {% endwith %} {% endfor %}