Exactly like that! :)


On Sun, Feb 10, 2013 at 7:13 PM, Gilles Lenfant <notifications@github.com>wrote:

> In mrbob/__init__.py:
>
> > @@ -0,0 +1,42 @@
> > +# -*- coding: utf-8 -*-
> > +
> > +import os
> > +import abc
> > +import textwrap
> > +
> > +import parsing
> > +
> > +
> > +class TemplateDescription(object):
>
> But this could be improved with a factory that lets you the possibility to
> change the registered object (the one mentioned by the entry point like
> this:
>
> from mrbob import register_template  # (rel_path, description=None)
> NSPackage = register_template('nspackage')  # description is in .mrbob.iniFlaskBootstrap = register_template('flaskbootstrap', description="Bootstrap a Flask based site")
>
>  —
> Reply to this email directly or view it on GitHub<https://github.com/iElectric/mr.bob/pull/39/files#r2955683>..
>
>