Closed manafire closed 10 years ago
This patch allows support for templating languages like Slim and Jade which don't have the angle brackets on img tags.
When using AutoFileName, this patch will allow turn templates structured like this:
table tr td width='50px' img src="images/my-image.jpg"
into this:
table tr td width='50px' img src="images/my-image.jpg" width="50" height="50"
Regular HTML <img ../> tags will still work, as some templates support them.
<img ../>
To enable, the template scope must be added to afn_valid_scopes and afn_template_languages must be set to true, like so:
afn_valid_scopes
afn_template_languages
... "afn_valid_scopes":["string","css","sass","less","scss","slim"], "afn_template_languages": true, ....
I'll test this out tonight but it looks good. Just want to confirm it all works before I merge.
This patch allows support for templating languages like Slim and Jade which don't have the angle brackets on img tags.
When using AutoFileName, this patch will allow turn templates structured like this:
into this:
Regular HTML
<img ../>
tags will still work, as some templates support them.To enable, the template scope must be added to
afn_valid_scopes
andafn_template_languages
must be set to true, like so: