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

Re: Does Knop Support Jason's Custom Tag Loader?

by Johan Solve-2 :: Rate this Message:

Reply to Author | View in Thread

Would you use this to load the entire knop.lasso file or the individual source files separately? (form.inc etc)

At 11.39 -0700 2009-07-02, Steve Piercy - Web Site Builder wrote:

>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/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:joh-n@...
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
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?