lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello John,

Sunday, September 13, 2009, 11:10:08 AM, you wrote:

> I want to think more about how to set things up so that custom parsers and
> callbacks can be inserted without modifying the module code. That would
> probably be a good feature.

the way i implement it is to provide function register_xxx that should
be called by user with callback and all other required parameters:

register_callback ("<head>",
  function (tag)
    ...
  end)

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@gmail.com