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.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.1a2.zip (22.3 kB view details)

Uploaded Source

File details

Details for the file mr.bob-0.1a2.zip.

File metadata

  • Download URL: mr.bob-0.1a2.zip
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mr.bob-0.1a2.zip
Algorithm Hash digest
SHA256 c707116b17fc589de925638dd9f5f5e71f2ea21ee3abf59f3b9b0a0cf36c525f
MD5 0ed655cfdca1c224a409738fed5b8220
BLAKE2b-256 828381dc44f573abc6089fbc73e381d1e7374043c73d1faa62a42fcd93cf56d1

See more details on using hashes here.

Supported by

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