Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 2.23 KB

index.rst

File metadata and controls

78 lines (55 loc) · 2.23 KB

Welcome to mr.bob's documentation!

Author

Tom Lazar <tom@tomster.org>, Domen Kožar <domen@dev.si>

Source code

github.com project

Bug tracker

github.com issues

License

BSD

Generated
Version

Features

  • asks questions which need to be answered to render structure
  • questions can be grouped by using a namespace
  • renders templates from a folder, Python egg, or zip file
  • supports Python 2.6 - 3.3, pypy
  • 100% test coverage
  • uses Jinja2 as the default rendering engine (can be replaced)
  • multiple ways to specify variables to render templates
  • preserves permissions when rendering templates
  • provides hooks before/after asking a question
  • provides hooks before/after rendering structure
  • can remember given answers for rendered structure

Flow of mr.bob

image

Introduction

mr.bob is a tool that takes a directory skeleton, copies over its directory structure to a target folder and can use the Jinja2 (or some other) templating engine to dynamically generate the files. Additionally, it can ask you questions needed to render the structure, or provide a config file to answer them.

mr.bob is meant to deprecate previous tools such as paster (PasteScript) and templer.

userguide.rst templateauthor.rst other.rst developer.rst api.rst HISTORY.rst

Glossary

dotted notation

Importable Python function specified with dots as importing a module separated with a column to denote a function. For example mrbob.rendering:render_structure

mr.bob

This section configures how mrbob behaves

variables

This section answers to the questions that will be passed to templates for rendering

Indices and tables

  • genindex
  • modindex
  • search