[Templates-cvs] cvs commit: Template2/docsrc/src/Modules/Template/Plugin Image.tt2
cvs@template-toolkit.org
cvs@template-toolkit.org
cvs 06/01/30 17:52:01
Modified: docsrc/src/Modules/Template/Plugin Image.tt2
Log:
* documented name method
Revision Changes Path
1.6 +4 -0 Template2/docsrc/src/Modules/Template/Plugin/Image.tt2
Index: Image.tt2
===================================================================
RCS file: /template-toolkit/Template2/docsrc/src/Modules/Template/Plugin/Image.tt2,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Image.tt2 2006/01/30 16:17:07 1.5
+++ Image.tt2 2006/01/30 17:52:01 1.6
@@ -46,6 +46,10 @@
[% USE img1 = image 'foo.gif' %]
[% USE img2 = image 'bar.gif' %]
+The 'name' method returns the image file name.
+
+ [% img1.name %] # foo.gif
+
The 'width' and 'height' methods return the width and height of the
image, respectively. The 'size' method returns a reference to a 2
element list containing the width and height.