2007-01-22T19:33:34  <nomed> hi all
2007-01-22T19:33:51  <nomed> have u ever consider or planed to use a templating engine ?
2007-01-22T20:07:42  <ThomasWaldmann> nomed: that topic we have every 3 months :)
2007-01-22T20:08:35  * ThomasWaldmann is still waiting for someone doing a proof-of-concept theme with a templating engine
2007-01-22T20:10:02  <nomed> maybe to choose a default templating engine is a good start point ?
2007-01-22T20:10:14  <nomed> do u have any in mind already ?
2007-01-22T20:11:06  <nomed> about the theme ... to port modern could be another good start point
2007-01-22T20:11:47  <nomed> i'd like to help on this ... but for sure i need someone else interested that would help too
2007-01-22T20:11:55  <nomed> to have discussions and such stuff
2007-01-22T20:12:20  * ThomasWaldmann likes the zerolib templating engine :)
2007-01-22T20:13:46  <ThomasWaldmann> nomed: but only start if you can stand us not taking it if it doesn't make thing better/easier/whatever
2007-01-22T20:15:43  <nomed> maybe TheShip (i can't remember his nick) could be a good candidate to help me here
2007-01-22T20:15:50  <nomed> i'll ask him
2007-01-22T20:16:23  <ThomasWaldmann> sheep! :)
2007-01-22T20:16:25  <nomed> about better/easier/whatever i think it does
2007-01-22T20:16:32  <nomed> ooops :)
2007-01-22T20:17:20  <ThomasWaldmann> the point is we don't want to introduce a templating language for its own sake if we can do the same thing in python
2007-01-22T20:18:17  <nomed> ThomasWaldmann: i see
2007-01-22T20:18:18  <ThomasWaldmann> so you will have to convince us by hard facts, that templating engine x is better than just using python although it needs more effort because you also have to learn the templating language
2007-01-22T20:18:47  <ThomasWaldmann> so that effort must be paid back somehow
2007-01-22T20:19:42  <nomed> ThomasWaldmann: an example is the class='%s'%(name) hardcoded
2007-01-22T20:20:47  <ThomasWaldmann> hm?
2007-01-22T20:22:11  <nomed> <div id="page" lang="en" dir="ltr">
2007-01-22T20:22:13  <nomed> <div id="content">
2007-01-22T20:22:28  <nomed> that's an example where a templating engine may help
2007-01-22T20:23:14  <nomed> in theme/{css,img}
2007-01-22T20:23:29  <nomed> i may have template/main.whatever
2007-01-22T22:15:40  <dreimark> ThomasWaldmann:I have already a Save action for mimetype text/plain
2007-01-22T22:16:19  <ThomasWaldmann> ah, good
2007-01-22T22:19:10  <dreimark> I can now write a mimetype dependend Load routine. So all not text/plain does go to attachment, is this wanted?
2007-01-22T22:20:19  <ThomasWaldmann> maybe currently we need to ask the user
2007-01-22T22:20:45  <ThomasWaldmann> whether it is content or attachment
2007-01-22T22:22:35  <dreimark> ok, makes it simpler
2007-01-22T22:23:33  <dreimark> If I do have both routines, should I push them or should I add them to MM/FR?
2007-01-22T22:24:44  <ThomasWaldmann> read the diff until you're happy with it and commit it to 1.6
2007-01-22T22:25:12  <ThomasWaldmann> btw finding out mimetype is maybe hardtest thing
2007-01-22T22:28:19  <dreimark> May be I can do this the same way as in EmbedObject  mime_type, enc = mimetypes.guess_type(attname)
2007-01-22T22:29:19  <ThomasWaldmann> see also that MimeType thing in wikiutil
2007-01-22T22:37:49  <dreimark> ok,
2007-01-22T22:38:21  <dreimark> another thing I try to work on is this argparser class in wikiutil
2007-01-22T22:39:59  <dreimark> currently I do believe it's not used
2007-01-22T22:40:35  <ThomasWaldmann> yeah everybody rather writes his own
2007-01-22T22:43:55  <dreimark> I tried a bit with that and it needs some more flexibility it's in some circumstances to strict
2007-01-22T22:46:37  <ThomasWaldmann> like when?
2007-01-22T23:00:47  <dreimark> if you have used more keywords as defined it can't be used to inherit those keywords
2007-01-22T23:01:32  <dreimark> and sometimes you need to know how much positonal parameters where used
2007-01-22T23:01:43  <dreimark> were
2007-01-22T23:02:28  <dreimark> and you need to enter the pattern of which kind of data the parameter is
2007-01-22T23:02:29  <ThomasWaldmann> ah, ok, so it needs some more work

MoinMoin: MoinMoinChat/Logs/moin-dev/2007-01-22 (last edited 2007-10-29 19:13:11 by localhost)