From: Alex B. <en...@tu...> - 2001-09-21 23:29:37
|
hi all, 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. Andi, what's your opinion/thoughts on using an external class as a handler for each bc: tag? Also, Charlie: what work have you done with the Langkeyer? hopefully you've been working on the directory-lookup class, so we'll just be able to plug that in to the BCTagParser as a handler for bc:string :) best, _alex |
From: Andreas A. <a.a...@th...> - 2001-09-22 01:23:12
|
Hi Alex, > what's your opinion/thoughts on using an external > class as a handler for each bc: tag? I like that. It's clean and global scope is not messed up with functions. The classes can be reused for other purposes and all the stuff is nicely encapsulated. How about using the same requirements as with modules? Classname(): does the grunt work Output(): returns compiled stuff to BCTagParser Hmm, actually these could be the first "core" modules ... > Also, Charlie: what work have you done with the > Langkeyer? hopefully you've been working on the > directory-lookup class, so we'll just be able to > plug that in to the BCTagParser as a handler for > bc:string :) cool!!! Andi |
From: Alex B. <en...@tu...> - 2001-09-22 19:13:24
|
> Hi Alex, > >> what's your opinion/thoughts on using an external >> class as a handler for each bc: tag? > > I like that. It's clean and global scope is not messed up with functions. > The classes can be reused for other purposes and all > the stuff is nicely encapsulated. > > How about using the same requirements as with modules? > > Classname(): does the grunt work > Output(): returns compiled stuff to BCTagParser > > Hmm, actually these could be the first "core" modules ... Precisely what I was thinking :) _alex |
From: Andreas A. <a.a...@th...> - 2001-09-22 19:22:00
|
Hi Alex, >> Hmm, actually these could be the first "core" modules ... > >Precisely what I was thinking :) :) I've done this today. Integrated it in Makefiles and did a quick example in htdocs. I'll checkin tomorrow, or later tonight when i'll be back. Andi |
From: Manuel L. <ml...@ac...> - 2001-09-22 20:00:11
|
Hello Alex, On 21-Sep-01 20:30:00, 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? 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 -- |
From: Alex B. <en...@tu...> - 2001-09-22 20:05:18
|
> Hello Alex, > > On 21-Sep-01 20:30:00, 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. 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. 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. best, _alex > 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 > -- > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > https://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
From: Andreas A. <a.a...@th...> - 2001-09-22 20:11:22
|
Hi Manuel, Alex, > 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. Where can I get MetaL? I just read about it in the phpclasses list. Is it public right now? Andi |
From: Manuel L. <ml...@ac...> - 2001-09-22 20:45:25
|
Hello Andreas, On 22-Sep-01 17:11:01, you wrote: >Hi Manuel, Alex, >> 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. >Where can I get MetaL? I just read about it in the phpclasses list. Is it >public right now? Not yet. I am preparing to open it when I feel it is ready to demonstrate the concept: generate code in more than one language that implement the same program. I am almost right up to the point to demonstrate that concept in PHP, Java and Perl. Meanwhile, I have opened the project to a limited group of developers so they can evaluate the usability of the language before I release it to the world and make some criticisms and improvement suggestions. MetaL will be Open Source anyway so everybody will be able to use it, but if you or anybody feel you would like to evaluate it and provide some feedback, I can grant you access to the developers mailing list and the CVS repository. Just mail me privately. 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 -- |
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 -- |
From: Alex B. <en...@tu...> - 2001-09-22 21:32:25
|
>> 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? Hmmm... yes, that would be great. >> 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. Ok. > >> 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. Indeed, though I was not thinking that MetaL did that. hmmmmm _a |
From: <bin...@li...> - 2001-10-14 23:28:07
|
Hello Alex, I will get back on this. It is just that my since my son was born I have not had much time to catch up on e-mail. On 22-Sep-01 18:32:48, you wrote: >>> 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? >Hmmm... yes, that would be great. >>> 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. >Ok. >> >>> 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. >Indeed, though I was not thinking that MetaL did that. >hmmmmm >_a >_______________________________________________ >binarycloud-dev mailing list >bin...@li... >https://lists.sourceforge.net/lists/listinfo/binarycloud-dev 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 -- |
From: <bin...@li...> - 2001-10-15 00:16:58
|
> Hello Alex, > > I will get back on this. It is just that my since my son was born I have > not had much time to catch up on e-mail. Congratulations! What's his name? :) _a |
From: <bin...@li...> - 2001-10-15 10:33:50
|
Hi Manuel, > I will get back on this. It is just that my since my son was > born I have not had much time to catch up on e-mail. Congratulations from me too. :andi |