When working with diazo, I'd love to be able to have a variable like {$theme_path}
I currently have to hardcode the theme path when including specific files.
For example
<after css:theme-children="html body">
<script src="++theme++mytheme/js/collection-search-filter.js"></script>
</after>
It means that if I rename my theme to cooltheme
and deploy to another site, I end up breaking things without also renaming all paths containing ++theme++
Following my example, I'd need to change this entry to
<after css:theme-children="html body">
<script src="++theme++cooltheme/js/collection-search-filter.js"></script>
</after>
If there were a theme_path
variable, I could simply make it work everywhere by doing something like this:
<after css:theme-children="html body">
<script src="{$theme_path}/js/collection-search-filter.js"></script>
</after>