michaelstepner / pandoc-mustache

Pandoc filter for variable substitution using Mustache syntax
Creative Commons Zero v1.0 Universal
55 stars 14 forks source link

Interpolated variable values #5

Closed ghost closed 6 years ago

ghost commented 6 years ago

Given:

---
a: A
b: $a$ B
c: $b$ C $b$
...

Produce:

---
a: A
b: A B
c: A B C A B
...

The algorithm that performs this feat is relatively trivial.

michaelstepner commented 6 years ago

On a quick glance at the Mustache spec, I didn't see this feature. I may have missed it though. If it's not a part of the Mustache spec, my instinct is that I wouldn't support merging a pull request that implements this.

This doesn't strike me at first glance like a common use case, so I'm closing the issue for now. If it is a part of the Mustache spec or others feel it would be especially useful, I'd welcome more discussion.

I've pasted the contributing section from the README below.

Contributing

Project Status: Inactive

This code is not being actively developed. It was created to fulfill my pandoc writing needs, and the current feature set is adequate for me.

If you have a feature request, it is unlikely that I will be able to implement it for you. You can create an issue to generate discussion. If you implement a feature, you can file pull request and I will review it eventually, as time permits. If you're interested in making major additions to the code, I'd be happy to welcome a new maintainer to the project.