Dotan Nahum
1 min readMar 24, 2018

--

Yes! For each inject you need a new template, just make sure to: points to the same file you need to have multiple injects for.

It also helps to organize the files under some naming strategy such as:

my-generator/
new/
gemfile_step0.inject.t
gemfile_step1.inject.t

--

--

Dotan Nahum
Dotan Nahum

Written by Dotan Nahum

@jondot | Founder & CEO @ Spectral. Rust + FP + Hacking + Cracking + OSS. Previously CTO @ HiredScore, Como, Conduit.

Responses (1)