<% File.filetype %> |
macro rendering the file extension from the name |
Sourcecode in File/macros.js:
1: function filetype_macro(param) { 2: var i = this.name.lastIndexOf("."); 3: if (i > -1) 4: res.write(this.name.substring(i+1, this.name.length)); 5: return; 6: } |