« Return to Thread: Does Knop Support Jason's Custom Tag Loader?

Does Knop Support Jason's Custom Tag Loader?

by Steve Piercy :: Rate this Message:

Reply to Author | View in Thread

Rather than toss the Knop tags into LassoLibraries, I would like to put them in a custom location to make it easier to manage updates, but it looks like the tags require the following modification.  If so, this is a feature request.

http://devblog.jasonhuck.com/2008/04/10/using-namespaces-to-load-lasso-tags-into-memory/

    In its current incarnation, it’s important that each file loaded
    with the tag loader contain a tag with the same name as the
    file. Otherwise, that file will be reloaded every time,
    regardless of whether it’s necessary. So, for instance, if you
    have all of the tags in the foo_ namespace in a single file
    called foo_library.inc, you’ll want to include a placeholder tag
    to register the library with the tag loader. I typically just
    define a simple tag which returns “Loaded” and place it at the
    end of the file (so that it only loads if there are no other
    errors):
   
    [
        define_tag('foo_bar');
            ...
        /define_tag;
     
        ...
     
        define_tag('foo_library');
            return('Loaded');
        /define_tag;
    ]

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy               Web Site Builder               Soquel, CA
<web@...>                  <http://www.StevePiercy.com/>

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <knop@...>.
To unsubscribe, E-mail to: <knop-off@...>
Send administrative queries to  <knop-request@...>
List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

 « Return to Thread: Does Knop Support Jason's Custom Tag Loader?