You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will look in the subdir relpath/ and open the file test2.mustache.
However, in mustache.js, this does not work. In fact, the tag isn't even parsed and is output verbatim as:
<h1>Hi there</h1>
{{>relpath/test2}}
The issue appears to be this regex:
var new_regex = function() {
return new RegExp(that.otag + "(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?" +
that.ctag + "+", "g");
};
Notice how it has this:
[^\\/#\\^]+?
Removing the "/" from that regex should work. Thoughts?
Also, where do I get the "js" command line program? I tried to run the spec and then googled, found V8 and Spidermonkey, but neither seems to spit out a "js" command.
Thanks,
Nate
The text was updated successfully, but these errors were encountered:
Hi,
I am willing to supply a patch for this, but got a bit lost in the source, to be honest.
In the canonical Ruby mustache.rb, partials with relative paths are supported. For example:
This will look in the subdir relpath/ and open the file test2.mustache.
However, in mustache.js, this does not work. In fact, the tag isn't even parsed and is output verbatim as:
The issue appears to be this regex:
Notice how it has this:
Removing the "/" from that regex should work. Thoughts?
Also, where do I get the "js" command line program? I tried to run the spec and then googled, found V8 and Spidermonkey, but neither seems to spit out a "js" command.
Thanks,
Nate
The text was updated successfully, but these errors were encountered: