001 /** 002 * Implements the CFML Function getcurrenttemplatepath 003 */ 004 package railo.runtime.functions.system; 005 006 import railo.runtime.PageContext; 007 import railo.runtime.exp.PageException; 008 import railo.runtime.ext.function.Function; 009 010 public final class GetCurrentTemplatePath implements Function { 011 012 private static final long serialVersionUID = 1862733968548626803L; 013 014 public static String call(PageContext pc ) throws PageException { 015 return pc.getCurrentTemplatePageSource().getResourceTranslated(pc).getAbsolutePath(); 016 } 017 }