openresty / lemplate

OpenResty/Lua template framework implementing Perl's TT2 templating language
54 stars 9 forks source link

Some confusion #8

Closed hongliang5316 closed 7 years ago

hongliang5316 commented 7 years ago

Hi, @agentzh When i use /opt/lemplate/lemplate --compile template/*.tt2 > templates.lua it occurs Name "Text::Glob::seperator" used only once: possible typo at Text/Glob.pm line 24. and the templates.lua is generated successful.

agentzh commented 7 years ago

@hongliang5316 That warning can be safely ignored. I've never seen that thing myself. Maybe your Text::Glob module or Lemplate are too old?

ingydotnet commented 7 years ago

fwiw, I see that warning every time too, and I'm pretty sure I have the latest modules installed.

agentzh commented 7 years ago

@ingydotnet Since I cannot reproduce it myself, will you dig it up? Thanks!

ingydotnet commented 7 years ago

I can reproduce this with in the openresty/lemplate repo clone dir like this:

$ ./lemplate >/dev/null
Name "Text::Glob::seperator" used only once: possible typo at Text/Glob.pm line 24.
ingydotnet commented 7 years ago

I'll look for a quick fix.

ingydotnet commented 7 years ago

Fixed in #9.

agentzh commented 7 years ago

Already merged @ingydotnet's workaround and released as CPAN version 0.15.