Hi!

I have a TurboGears application that will be reused in other applications.  I
need to change the "master.kid" file -- the template that is extended in every
other template -- so that I reuse the master template of the application that
is reusing code while using templates from the small application itself.  Is
it possible?


Something like:

    big_app1
       |
       +--> templates
       +--> controllers
                |
                |    (includes)
                |
                +--> common_small_app
                          |
                          +--> templates
                                   |
                                   +--> master.kid = big_app1.master.kid
                          +--> controllers


    big_app2
       |
       +--> templates
       +--> controllers
                |
                |    (includes)
                |
                +--> common_small_app
                          |
                          +--> templates
                                   |
                                   +--> master.kid = big_app2.master.kid
                          +--> controllers


    big_app3
       |
       +--> templates
       +--> controllers
                |
                |    (includes)
                |
                +--> common_small_app
                          |
                          +--> templates
                                   |
                                   +--> master.kid = big_app3.master.kid
                          +--> controllers



Note that other than by Python standard introspection mechanisms
"common_small_app" doesn't know in what context it is being called (i.e., it
doesn't know if it is running standalone, under big_app1, under big_app2,
etc.).


Be seeing you,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to