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

在tag中,比如head tag中用block 报错 #16

Open
atlas1119 opened this issue Jul 6, 2016 · 2 comments
Open

在tag中,比如head tag中用block 报错 #16

atlas1119 opened this issue Jul 6, 2016 · 2 comments

Comments

@atlas1119
Copy link

用extend 时,用block时报
Uploading 11111.png…

@atlas1119
Copy link
Author

Template render error: (unknown path)
[1] Template render error: (/Users/wsj/project/red-all/main/main-site/static/pc_site/html/header/head.tpl)
[1] Error: unknown block "title"
[1] at Object.exports.prettifyError (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/lib.js:34:15)
[1] at /Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:485:31
[1] at [object Object].root [as rootRenderFunc](eval at %28/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24%29, :78:3)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :36:16)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :31:46)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :31:81)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :27:46)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :27:86)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :23:46)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :23:82)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :19:46)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :19:90)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :15:46)
[1] at eval (eval at (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:564:24), :15:87)
[1] at [object Object].Obj.extend.getTemplate (/Users/wsj/project/red-all/main/main-site/node_modules/nunjucks/src/environment.js:194:17)

@atian25
Copy link
Member

atian25 commented Jul 13, 2016

related mozilla/nunjucks#784

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

2 participants