So things like:
[%include global/header.html%]
won't work.
Changing line 382 of parser.rb to:
/^include (([\w\/\\]+)(?:\.\w+\??)*)$/i
seems to work (add both '/' and '\' so it'll work on win32 as well).
Though that doesn't completely fix the problem. While filenames like 'globals/header.html' will work now, filenames
like 'foo.bar/file' won't work anymore, because it tries to match the 'extension' part, and doesn't like that there's
a '/' in there. So maybe:
/^include (([\w\/\\]+)(?:\.[\w+\/\\]\??)*)$/i
will fix that properly, but I'm not sure as it's the right fix, as I'm not entirely sure what you're doing with the
latter half of that expression.
(BTW, I'm using version 2.2.0.)
Also, in htglossary.rb, there's:
/^tmpl_include (?:name=|file=)?"?((\w+)(?:\.\w+\??)*)"?$/i
I'm not sure if thie needs to be modified as well. |