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

'index' func overwrites default 'index' #73

Open
Etomyutikos opened this issue Oct 31, 2017 · 1 comment
Open

'index' func overwrites default 'index' #73

Etomyutikos opened this issue Oct 31, 2017 · 1 comment
Assignees
Labels

Comments

@Etomyutikos
Copy link
Member

The strings.Index func added to the func map in environ/funcs.go overwrites the text/template index func, making some operations impossible.

Etomyutikos pushed a commit to codercom/gnorm that referenced this issue Oct 31, 2017
This is a bandaid for gnormal#73 while waiting for an official
fix.
@natefinch
Copy link
Member

Hugo uses namespaces for functions. I think this is the right fix. Implementation looks like this:

https://play.golang.org/p/TIV-2BEO1o

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

No branches or pull requests

2 participants