阅读背景:

如何使用ERB查找模板文件的路径?

来源:互联网 

I am using embedded ruby (ERB) to generating text files. I need to know the directory of the template file in order to locate another file relative to the template file path. Is there a simple method from within ERB that will give me the file name and directory of the current template file?I am using embedded ruby (ERB) to generating te




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: