We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The xxx_controller : TestJson = jsx:encode([{<<"library">>,<<"jsx">>},{<<"awesome">>,true}]),
The template:
The text was updated successfully, but these errors were encountered:
If your code looks like
TestJson = jsx:encode([{<<"library">>,<<"jsx">>},{<<"awesome">>,true}]), my_template:render([{test_json, TestJson}]).
change it to
TestJson = [{<<"library">>,<<"jsx">>},{<<"awesome">>,true}], my_template:render([{test_json, TestJson}]).
Because erlydtl don't parse JSON, but operates under erlang k-v structures.
Also, please, note, that github issues isn't the place for Q&A, but place for reporting bugs.
Sorry, something went wrong.
No branches or pull requests
The xxx_controller :
TestJson = jsx:encode([{<<"library">>,<<"jsx">>},{<<"awesome">>,true}]),
The template:
{{ test_json.library }}
the console's error:
error function_clause [{erlydtl_runtime,find_value,[library,<<"{"library":"jsx","awesome":true}">>],[{file,"src/erlydtl_runtime.erl"},{line,52}]}
The text was updated successfully, but these errors were encountered: