-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
tpl: "int" func should handle template.HTML input #3308
Labels
Comments
moorereason
changed the title
tpl: "int" func should handle template.HTML input
Apr 9, 2017
delimit
ed string can't be cast to int
I tagged this as upstream as I'm thinking that cast.ToIntE could detect a fmt.Stringer interface if not a basic type. However, we may need to just put |
@moorereason is this fixed? |
No, I'll send a PR to fix this. |
moorereason
added a commit
to moorereason/hugo
that referenced
this issue
May 22, 2017
Also add tests for ToInt and ToString. Resolves gohugoio#3308
bep
pushed a commit
that referenced
this issue
May 22, 2017
Also add tests for ToInt and ToString. Resolves #3308
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Constructing a string from a string array fails:
It however can be done using
printf
which indicates that the above may be a bug:The text was updated successfully, but these errors were encountered: