A fast & simple boilerplate generator, built with Rust. ๐Ÿฆ€

Related tags

Template engine boom
Overview

Boom ๐Ÿ’ฅ

A fast & simple boilerplate generator, built with Rust.

Installing boom

This package is not yet downloadable on Brew or other package managers, so for now installing it takes slightly more work.

  1. Clone this repo into the directory of your choice:
git clone https://github.com/t4t5/boom.git
  1. Compile the code:
cd boom && cargo build
  1. Set an alias for "boom" in your .zshrc or .bash_profile:
alias boom="{YOUR_DIR}/boom/target/debug/boom"

Using boom

Boom will automatically create a .boom folder in your home directory. This is where all your boilerplate generators will be stored.

You can add this directory to your version-controlled dotfiles so that you don't lose your library of boilerplate templates.

Adding a boom template

To create a new boom template, run:

boom new <boom-template-name>

A new directory will be created in your .boom folder, with a boilerplate directory and an init.sh file inside it.

Add the files you want for your boilerplate in the boilerplate directory, and the commands you want to run when starting a project using this boilerplate in init.sh (like "npm install" for example).

Using your new boom template

boom <boom-template-name> <your-project-name>

This will create a new folder called in whatever directory you're currently in, using the boilerplate.

Adding others' templates

We encourage you to share your boom templates in a public dotfiles repo! That way, others can find and use your templates in their own projects.

To quickly clone someone else's template, you first need to install github-clone:

pip install github-clone

Now let's say you want to add t4t5's eleventy template to your own boom templates. You can then simply run:

boom add https://github.com/t4t5/dotfiles/tree/master/boom/templates/eleventy

You can now use this boilerplate using:

boom eleventy <your-project-name>

Todos

  • Remove dependency on github-clone
  • Show the output of scripts from templates' init.sh (so that you can see progress of npm install for example)
  • Support calling boom command without any arguments. Show an interactive UI where you can pick from your templates.
You might also like...
A flexible template engine for Rust

Rustache Rustache is a Rust implementation of the Mustache spec. Documentation The different Mustache tags are documented at the mustache(5) man page.

A minimalist Rust WebAssembly project template

MiniWASM - A minimalist Rust WebAssembly project template This is a minimal Rust-powered WebAssembly application template. It was designed to showcase

A template for a Rust-powered static-page Try Online interface

rust-tio-template A template for a Rust-powered static-page Try Online interface What is included This is an example setup that enables all of the fol

MiniJinja is a powerful but minimal dependency template engine for Rust
MiniJinja is a powerful but minimal dependency template engine for Rust

MiniJinja: a powerful template engine for Rust with minimal dependencies MiniJinja is a powerful but minimal dependency template engine for Rust which

Templates for creating rust projects with a GitHub-managed lifecycle with cargo-generate ๐Ÿ—๏ธ๐Ÿ“ƒ

rust-templates Templates for creating rust projects with a GitHub-managed lifecycle with cargo-generate. ๐Ÿ—๏ธ ๐Ÿ“ƒ What you get: PR build validation usin

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.

Rust on ESP-IDF "Hello, World" template A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework. This is the crate you get when ru

A template for creating services in Rust using Axum and Prisma.

A template for creating services in Rust using Axum and Prisma. This uses the super cool Prisma Rust Client.

โœจ A perfect template for a binary rust project.

Rust Template A project template for Rust, helping to structure your projects blazingly fast โšก . Features ๐Ÿ”ฅ Code-ready for binary projects. Add amazi

A simple code boilerplate generator written in Rust.

๐Ÿ’ป Cgen What is Cgen? A modern, cross-platform, multi-language boilerplate generator aimed to make your code generation less hectic! If you wish to su

Sลซshรฌ is a simple but customizable static site generator / blog generator written in Rust

sลซshรฌ Sลซshรฌ is a simple but customizable static site generator / blog generator written in Rust. Installation Install with Cargo (Recommended) cargo i

โšก A Blazingly-Fast Static Site Generator, built with Rust.
โšก A Blazingly-Fast Static Site Generator, built with Rust.

Stuart A Blazingly-Fast Static Site Generator. Download Now ยป Stuart is a very fast and flexible static site generator, with build times as low as 0.1

A fast static site generator in a single binary with everything built-in. https://www.getzola.org

zola (nรฉ Gutenberg) A fast static site generator in a single binary with everything built-in. Documentation is available on its site or in the docs/co

A fast static site generator in a single binary with everything built-in. https://www.getzola.org

zola (nรฉ Gutenberg) A fast static site generator in a single binary with everything built-in. Documentation is available on its site or in the docs/co

A fast, boilerplate free, web framework for Rust

Tower Web A web framework for Rust with a focus on removing boilerplate. API Documentation Tower Web is: Fast: Fully asynchronous, built on Tokio and

Kurzlink is a simple static site generator built in rust

kurzlink What is kurzlink? Kurzlink is a simple static site generator built in rust.

The Heros NFT Marketplace Boilerplate project is designed to let users fork, customize, and deploy their own nft marketplace app to a custom domain, ultra fast.

Heros NFT on Solana The Heros NFT Marketplace Boilerplate project is designed to let users fork, customize, and deploy their own nft marketplace app t

A dead simple boilerplate for Rust projects.
A dead simple boilerplate for Rust projects.

boilerplate-rs โ€ข A dead simple boilerplate for Rust projects. Project Structure โ”œโ”€โ”€ assets โ”‚ โ””โ”€โ”€ logo.png โ”œโ”€โ”€ bin โ”‚ โ”œโ”€โ”€ Cargo.toml โ”‚ โ””โ”€โ”€ src โ”‚

Bootstrap your MEV bot strategies with a simple boilerplate to build on top of.

MEV Template Designed by DeGatchi. Bootstrap your MEV bot strategies with a simple boilerplate to build on top of. How To Use This Template I wrote an

A simple, fast, easy README generator
A simple, fast, easy README generator

Welcome to Readme Generator A simple, fast, easy README generator. Never worry about READMEs again! What it does: Run the command in your project's di

Owner
Tristan Edwards
Designer/developer. Maker of codespace.app and SweetAlert
Tristan Edwards
finch - a super fast and efficient template rendering engine for node.js

finch A super fast and efficient template rendering engine for node.js, inspired by Handlebars. Usage Finch is very simple to use: Register a template

null 1 Nov 2, 2021
Balsa is a delightfully simple HTML template engine

?? balsa Balsa is a delightfully simple HTML template engine. It is designed to be used in user interfaces such as a CMS where a user needs to be able

Tyler Lafayette 1 Jan 19, 2022
Rust templating with Handlebars

handlebars-rust Handlebars templating language implemented in Rust and for Rust. Handlebars-rust is the template engine that renders the official Rust

Ning Sun 922 Dec 27, 2022
Yarte stands for Yet Another Rust Template Engine

Should we start to worry? bytes-buf feature can produce SIGILL. avx and sse flags are in almost all cpus of x86 and x86_64 architectures. More details

Juan Aguilar 249 Dec 19, 2022
:pencil: Compile-time HTML templates for Rust

maud Documentation (source) โ€ข API reference โ€ข Change log Maud is an HTML template engine for Rust. It's implemented as a macro, html!, which compiles

Chris Wong 1.4k Jan 1, 2023
A macro-based html builder for rust

Horrorshow A macro-based html templating library, compatible with stable rust (currently requires rust >= 1.37). Features This crate will degrade grac

Steven Allen 267 Dec 11, 2022
Rust Compiled Templates with static-file handling

Rust Compiled Templates โ€” ructe This is my attempt at writing a HTML template system for Rust. Some inspiration comes from the scala template system u

Rasmus Kaj 337 Jan 8, 2023
A template engine for Rust based on Jinja2/Django

Tera Tera is a template engine inspired by Jinja2 and the Django template language. <title>{% block title %}{% endblock title %}</title> <ul> {% for u

Vincent Prouillet 2.5k Jan 1, 2023
Type-safe, compiled Jinja-like templates for Rust

Askama Askama implements a template rendering engine based on Jinja. It generates Rust code from your templates at compile time based on a user-define

Dirkjan Ochtman 2k Jan 5, 2023
Hiccup html templating in rust

Hiccup A Clojure's Hiccup inspired macro. At the moment support for inline code execution is not guaranteed. The main objective of this lib is to prev

Julia Naomi 13 May 28, 2022