On Mon, Jul 15, 2013 at 7:38 AM, Olemis Lang <[email protected]> wrote:

> On 7/15/13, Anoop Nayak <[email protected]> wrote:
> > Hi Olemis,
> >
>
> :)
>
> >> The real question I make to myself is, in these kinds of editors
> >> where's the model ? Or is it that you'd just use client-side
> >> templating ?
> >
> > Ya I just wanted to use a framework to provide a structure. As of now
> there
> > aren't any models. Since I was learning angularjs I just quoted it :). I
> > might only be using the client side. I intially thought of making the
> > editor into an app and it does the rest of the job. I don't know how the
> > situation might be. And can you suggest some approaches on solving this?
>
> Right now I do not recall .
>
> > I
> > have to submit my proposal at the earliest :) with a well written
> timeline.
> >
> >> If the later case is the target then **ideally** I'd rather use a
> >> solution supporting Genshi templates so that it will be possible to
> >> reuse existing and have a consistent style in server and client code.
> >> In the mean time there's a patch proposed in #195 based on Blueimp's
> >> js templates engine. However it's not a straitjacket due to the fact
> >> that jQuery-File-Upload may be customized to use custom JS template
> >> engines (if there's a good reason to do so ;).
> >
> > I didn't quite get you here. Did you mean to use some stuff like
> genshi2js?
> > Or another library which can go hand in hand with genshi templates?
> >
>
> That would be the **ideal** approach (and that's IMO) in order to
> reuse Genshi templates in the client-side and write them just once.
> Otherwise UI templates have to be written at least twice .
>
> [...]
>

I'm not following the discussion about Genshi templates. Currently the
allowed markup is defined in parser.py (1) and the wiki is transformed to
html in formatter.py (2). It seems like we need something like "
format_to_html" on the client side that is passed tokens as they are
generated. Perhaps my interpretation of this is too naive, but maybe these
questions will help Anoop see the kind of detail that might be added to the
proposal so that even I can understand it!

(1) http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/wiki/parser.py
(2) http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/wiki/formatter.py

Reply via email to