xenoterracide / brix

Brix is a CLI tool written in Rust for scaffolding and code generation.
https://crates.io/crates/brix
MIT License
5 stars 0 forks source link

string manipulation helpers for templating #19

Closed miapolis closed 1 year ago

miapolis commented 3 years ago

Currently, there is no way to be able to define within a template a way to manipulate strings such as lower, upper, title, etc. The user should be able to create a template like this:

defmodule Project.Routers.{{#title module}}Router do: # ...

and when running brix elixir router project api see the outputted file as:

defmodule Project.Routers.ApiRouter do: # ...