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

inner-template not working #78

Open
tcurdt opened this issue Jul 27, 2016 · 3 comments
Open

inner-template not working #78

tcurdt opened this issue Jul 27, 2016 · 3 comments

Comments

@tcurdt
Copy link

tcurdt commented Jul 27, 2016

I have

feed.atom: posts/*/*.md
    inner-template

in the verbose output

Found page: feed.atom; rule: &{[posts/*/*.md] [inner-template]}

yet if just gets copied and the template does not get applied at all.

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <id>{{ .Site.Other.Url }}</id>

Not sure what I am doing wrong there.

@tcurdt
Copy link
Author

tcurdt commented Jul 29, 2016

Seems like when there is problem with the template no error gets reported and instead the file is not getting processed but just copied.

@piranha
Copy link
Owner

piranha commented Jul 30, 2016

Oh, that's pretty bad. I'm not sure I'll have time to look into that soon, but patches are really welcome!

piranha added a commit that referenced this issue Nov 1, 2018
Added error handling on Inner-Template #78
@juev
Copy link
Contributor

juev commented Nov 1, 2018

I got the same issue. File blog.atom do not processed with templates. After adding error handling I got error:

blog.atom: runtime error: index out of range

It's means, I have error in template. I checked the file, and fixed it.
I think this pull was solved this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants