GithubHelp home page GithubHelp logo

boil's Introduction

Boil

experimental

Boil is a boilerplating/templating tool for Go that creates complete project boilerplates or smaller fragments of a codebase.


It takes snapshots of some source directory and optionaly all its child directories and files retaining file system hierarchy and packages it into a template.

Template file names and content can be parametrized. Content can be templated using text/template, input data comes from stdin prompts, command line arguments, AST of some go file or package, other input files, etc.

Templates are stored into repositories by default and boil maintains a default repository. Templates can be addressed by a path relative to the loaded repository or an absolute path to a template. Custom repositories can be loaded. Both templates and repositories can separately be versioned as they are just a directory on a file system. Loading of repositories or templates from network might be implemented later.

Templates can have sub-templates and define groups of them so combinations of parent and child templates can be executed as a single template, enabling template modularity.

Custom commands can be defined at various stages of template execution so data can be generated externally and optionally cleaned up after.

A metafile named boil.json defines a template and resides in the root of a template structure.

Up to date help is in the tool itself and reachable via boil help.

Installation

To install boil type go install github.com/vedranvuk/boil.

Examples

License

MIT

boil's People

Contributors

vedranvuk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.