template icon indicating copy to clipboard operation
template copied to clipboard

Support for $1, $2, etc

Open mightybyte opened this issue 10 years ago • 2 comments

Any chance you would be open to modifying this package to support $1, $2, etc? Those kinds of substitutions are useful when you have an array of "parameters" to be substituted instead of key/value pairs.

mightybyte avatar Nov 21 '14 21:11 mightybyte

I'm not sure how to square support for that with the way contexts are currently defined. If you have an idea I'm all ears.

tibbe avatar Nov 30 '14 08:11 tibbe

I was thinking of something simple like this.

https://github.com/tibbe/template/pull/11

mightybyte avatar Nov 30 '14 22:11 mightybyte