Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nested YAML lists #1

Open
trenkert opened this issue Feb 7, 2018 · 2 comments
Open

Support nested YAML lists #1

trenkert opened this issue Feb 7, 2018 · 2 comments

Comments

@trenkert
Copy link

trenkert commented Feb 7, 2018

pandoc-mustache produces errors when dealing with nested yaml blocks

this is my mustache.yaml file:

author: 
         name: Max Power
         affiliation: Springfield Power Plant
         position: senior security officer

favourites:
        pet: dog
        foods:
            donut
            beer```

and this is my report.md file

`Hi, my name is {{author.name}} and I'm a {{author.position}} at {{author.affiliation}}. I like {{favourites.foods.beer}} `

could this functionality be included?
@michaelstepner
Copy link
Owner

This is a good idea, and it is a part of the Mustache spec: see here. I'd welcome a pull request.

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.

@jgrigera
Copy link

Just to say that this has been sorted upstream (pystache) and thus this is working out of the box. I began doing a fork until I found this was already there. So @michaelstepner you can probably close!

commonlawfeature pushed a commit to commonlawfeature/pandoc-mustache that referenced this issue Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants