Let me think about his.
On Friday, 6 April 2012 06:43:47 UTC-5, villas wrote: > > Hi Massimo > > I love to see improvements to Markmin, it's great. > > One thing that I do is substituting my own special 'tags' in my Markmin > text with info from my 'Snippets' table which contains standard paragraphs. > > For example... > > My special tag in Markmin text is: {id} Or, more flexibly: > {mytable:myfield:id} > > In controller, something like this (pseudo code): > > # find all special tags > tags = re.findall('{[0-9]*}', markmintext) > > # replace tags with lookups of the ids from 'snippets' table. > for t in tags: > markmintext = markmintext.replace(t, db.snippets[t].paragraph) > > This enables me to make up a page of content by simply listing a number of > 'tags' which pulls in paragraphs from my 'snippets' table. > > Could something like this idea be included? > > Thanks, David > >