From: Manuel L. <ml...@ac...> - 2001-09-22 20:45:23
|
Hello Alex, On 22-Sep-01 17:05:39, you wrote: >>> what does everyone think about being able to create 'handler classes' for >>> custom tags which will be interpreted by the system at make-time? >> >>> I'm thinking of people who will want to create strange variants of the >>> lang keyer, or add some other special set of logic that would be >>> convenient to store in a tag. >> >> Isn't this what MetaL does: assign tags a function that is implemented by >> component that translates that into data or code that is generated at make >> time? >Not really, because you're actually building logic with MetaL, whereas we're >just doing string replacement that's supported by logic that figures out >what to replace with. Actually that is precisely what the MetaL compiler module named template does. You just say that there is some template data in a file and that you want to clip some data from it and have some data replaced with variable values that are specified in your program. Need examples? >I.e. we have a tag for putting the correct language version of a string >based on the current language code, or putting in a bunch of code for a >static module call from page, etc. Those would be done with MetaL by passing variable values that would represent the data that you want to replace in the the template. >I need to spend a little time with MetaL to get more comfortable with it, >but I don't think what we're doing crosses. Yes, I think you could save yourself a lot of development effort if you look closer into MetaL and realize that it does already what you need. What you are trying is one of the things that MetaL template can do, which is replacing data within template data. MetaL can also replace template data with code generated by some other module. To benefit from MetaL power, obviously you don't need to use everything that it is capable of. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=ml...@ac... -- E-mail: ml...@ac... URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- |