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

template command #17

Closed xenoterracide closed 1 year ago

xenoterracide commented 3 years ago

allow files to be templates that can use variables from the context, we could either call the command template, or maybe by the templating engine, such as in java the engine is pebble, then we could have more than one processor.

module {{ project }}.util.test {
  exports com.xenoterracide;
  requires java.base;
  requires spring.test;
  requires spring.boot.autoconfigure;
}
logging.level.com.xenoterracide.{{project}}=debug
logging.pattern.console=%highlight{%-5level} - %msg - %logger{36}%n%ex

alternate brace styles may be needed in the case of trying to template template files