[Templates-cvs] cvs commit: Template2/docsrc/src/Modules/Template/Plugin File.tt2
cvs@template-toolkit.org
cvs@template-toolkit.org
cvs 06/01/30 16:23:36
Modified: docsrc/src/Modules/Template/Plugin File.tt2
Log:
* changed references from abspath to abs
Revision Changes Path
1.4 +23 -22 Template2/docsrc/src/Modules/Template/Plugin/File.tt2
Index: File.tt2
===================================================================
RCS file: /template-toolkit/Template2/docsrc/src/Modules/Template/Plugin/File.tt2,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- File.tt2 2003/04/23 12:56:26 1.3
+++ File.tt2 2006/01/30 16:23:36 1.4
@@ -184,49 +184,50 @@
[% USE file('/foo/bar/baz.html') %]
- [% file.path %] # /foo/bar/baz.html
- [% file.dir %] # /foo/bar
- [% file.name %] # baz.html
- [% file.home %] # ../..
- [% file.root %] # ''
- [% file.abspath %] # /foo/bar/baz.html
- [% file.ext %] # html
+ [% file.path %] # /foo/bar/baz.html
+ [% file.dir %] # /foo/bar
+ [% file.name %] # baz.html
+ [% file.home %] # ../..
+ [% file.root %] # ''
+ [% file.abs %] # /foo/bar/baz.html
+ [% file.ext %] # html
[% file.mtime %] # 987654321
[% file.atime %] # 987654321
- [% file.uid %] # 500
- [% file.user %] # abw
+ [% file.uid %] # 500
+ [% file.user %] # abw
[% USE file('foo.html') %]
- [% file.path %] # foo.html
- [% file.dir %] # ''
- [% file.name %] # foo.html
+ [% file.path %] # foo.html
+ [% file.dir %] # ''
+ [% file.name %] # foo.html
[% file.root %] # ''
[% file.home %] # ''
- [% file.abspath %] # foo.html
+ [% file.abs %] # foo.html
[% USE file('foo/bar/baz.html') %]
- [% file.path %] # foo/bar/baz.html
- [% file.dir %] # foo/bar
- [% file.name %] # baz.html
+ [% file.path %] # foo/bar/baz.html
+ [% file.dir %] # foo/bar
+ [% file.name %] # baz.html
[% file.root %] # ''
[% file.home %] # ../..
- [% file.abspath %] # foo/bar/baz.html
+ [% file.abs %] # foo/bar/baz.html
[% USE file('foo/bar/baz.html', root='/tmp') %]
- [% file.path %] # foo/bar/baz.html
- [% file.dir %] # foo/bar
- [% file.name %] # baz.html
+ [% file.path %] # foo/bar/baz.html
+ [% file.dir %] # foo/bar
+ [% file.name %] # baz.html
[% file.root %] # /tmp
[% file.home %] # ../..
- [% file.abspath %] # /tmp/foo/bar/baz.html
+ [% file.abs %] # /tmp/foo/bar/baz.html
# calculate other file paths relative to this file and its root
[% USE file('foo/bar/baz.html', root => '/tmp/tt2') %]
+
[% file.path('baz/qux.html') %] # ../../baz/qux.html
- [% file.dir('wiz/woz.html') %] # ../../wiz/woz.html
+ [% file.dir('wiz/woz.html') %] # ../../wiz/woz.html
=head1 AUTHORS