Apr 06, 2015; 17:59
Ari Najarian
Wither Mustache?
Hi all!
I've been steadily moving more and more of my company's projects over to 9.3, in order to benefit from some of the performance and feature enhancements. One that I was particularly excited to try was the new Mustache templating engine, which I rely on heavily.
I tried making a very basic call to mustache_include, and immediately ran into some problems.
First off, the mustache_include tag wasn't defined under 9.3, even though the lower-level mustache_compile_string method did indeed exist. So, I grabbed the mustache.lasso code from the following link:
http://source.lassosoft.com/svn/lasso/lasso9_source/trunk/mustache.lasso
....and dropped it into my LassoStartup folder for my default instance. However, when I tried to compile a simple template, I got the following error and trace:
Error:
An unhandled failure during a web request
Error Code: 13
Error Message: OS error: 13 Permission denied
Error Detail:
Line Char File
25 5 dir.lasso
81 3 query.lasso
73 5 query.lasso
380 4 traits.lasso
377 10 traits.lasso
521 5 traits.lasso
71 11 query.lasso
80 8 query.lasso
22 3 dir.lasso
71 34 /var/lasso/instances/default//LassoStartup/mustache.lasso
55 55 /var/lasso/instances/default//LassoStartup/mustache.lasso
104 2 [the originating call from my own script.lasso]
From the error message, it appears the culprit is line 71:34 of mustache.lasso, which attempts to create a folder inside /private/var/lasso/instances/default
Relevant code from mustache.lasso below:
local(nnam = sys_homePath + '/cache/' + #splt->first + '.mustache.lasso')
dir(#nnam->stripLastComponent)->create // this is failing
I've tried granting permissions to the _lasso user in the file system, propagated permissions downward, and even created the /cache folder inside instances/default in case that was the problem. Each time I try to restart the instance and run the script, it fails with the same error. I'm on a Mac running 10.9.5 (Mavericks) with a standard Lasso 9.3 installation. I upgraded from 9.2.7, in case this helps.
Can someone help me resolve this issue so I can start using templated include files without thread variables?
Thanks!
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>