Permalink
Browse files

Add the ability to include images with dimensions

Use it in a template as follows:

	{{writeDirectInclude=logo.png;width=878;height=172}}
  • Loading branch information...
sabberworm committed Dec 11, 2012
1 parent 84ebb14 commit 951c8ef9c99e94766de252971d252c5106950969
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/resource_includers/images.tmpl
@@ -1 +1 @@
<img src="{{location}}" {{if=ne;1=\{\{title\}\};2=}}title="{{title}}" {{endIf}}{{if=ne;1=\{\{alt\}\};2=}}alt="{{alt}}" {{endIf}} {{if=ne;1=\{\{id\}\};2=}}id="{{id}}" {{endIf}}/>
<img src="{{location}}" {{if=ne;1=\{\{title\}\};2=}}title="{{title}}" {{endIf}}{{if=ne;1=\{\{alt\}\};2=}}alt="{{alt}}" {{endIf}}{{if=ne;1=\{\{id\}\};2=}}id="{{id}}" {{endIf}}{{if=ne;1=\{\{width\}\};2=}}width="{{width}}" {{endIf}}{{if=ne;1=\{\{height\}\};2=}}height="{{height}}" {{endIf}}/>

0 comments on commit 951c8ef

Please sign in to comment.