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

.variable #15

Closed
jinxmcg opened this issue Jul 5, 2017 · 2 comments
Closed

.variable #15

jinxmcg opened this issue Jul 5, 2017 · 2 comments

Comments

@jinxmcg
Copy link

jinxmcg commented Jul 5, 2017

#{data.PageId} is not working the error is "is an incomplete template""
any idea how to fix?

Thanks

@jinxmcg jinxmcg changed the title Any plans updating? .variable Jul 5, 2017
@jinxmcg
Copy link
Author

jinxmcg commented Jul 5, 2017

I looked into it and it seems #{var} => {{var}} and html/template complains is no function "var" i think it should be converted to {{.var}} and it will work
what do you think?

@jinxmcg
Copy link
Author

jinxmcg commented Jul 5, 2017

Adding a "." to lines 209 in jade_node.go fixes it...still I do not know if it is correct the behaviour I suggested.

return fmt.Sprintf("%s", rex.ReplaceAll(l.Text, []byte("{{.$1}}"))) default: return fmt.Sprintf("\n"+idt+"%s", rex.ReplaceAll(l.Text, []byte("{{.$1}}")))

@Joker Joker closed this as completed in e1eaa76 Apr 18, 2018
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

1 participant