Skip to main content

Bob renders directory structure templates

Project description

Mister Bob the Builder renders directory skeleton to a target directory.

More: http://mrbob.readthedocs.org/

TODO

  • gittip

  • add +var+ folder in template_sample

  • [medium] validate questions being answered through config files

  • [medium] figure out how templates can depend on each other (bobconfig setting with a list of template names?)

  • [medium] ability to use multiple templates at the same time and depend on them (similar templer structures, but doesnt separate structures and templates)

  • [medium] Check how one would implement multi-namespace python package with current mr.bob api

  • [medium] Consider http://www.stat.washington.edu/~hoytak/code/treedict/overview.html#overview for “variables” storage

  • [low] Ability to configure what to ignore when copying templates in bobconfig

  • [low] better format print questions output (keep order of questions)

  • [low] non-interactive support (disable last phase of configuration) - what happens on missing variable?

  • [low] ability to have localcommands (maybe we dont need them because you can just use another template on top of template) - document this

  • [low] ability to specify answers to questions from cli

  • [low] ability to simulate rendering (dry-run)

  • [low] ability to rewrite templates

  • [low] ability to remember answers for the rendered template (goes together with updating/overriding templates)

[high] parse mr.bob section in templates (determine how that goes into configuration chain):

[mr.bob]
post_render_msg = Balblablalba
pre_render(all stuff passed to render())
post_render
pre_ask_question(question, questions, more?)
post_ask_question

Add advanced templating docs section:

  • remove action in favor of post_ask_question

  • default may require input from previous answers (for example url of documentation may propose package.rtfd.org link for docs) -> use pre_ask_question to set default value

  • ability to conditionally render a file -> use post_render and delete the file if needed

  • if one question was answered, another template may be triggered -> use post_ask_question and use api to do whatever

  • question may be asked if another question is answered in a certain way -> use post_ask_question and add another question (is that possible if we are looping through questions? -> While questions: questions.pop())

Changelog

0.1a3 (2012-11-30)

  • #13: Read user config from ~/.mrbob (as stated in docs and inline comments). [Andreas Kaiser]

0.1a2 (2012-11-29)

  • #12: Fix unicode errors when using non-ASCII in questions or defaults [Domen Kožar]

  • Ask questions in same order they were defined in template configuration file [Domen Kožar]

0.1a1 (2012-10-19)

  • Initial release. [Domen Kožar, Tom Lazar]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mr.bob-0.1a3.zip (22.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page