You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurs when send an object to a child template with the with statement of include.
{% include 'partial/summary' with {post: post} %}
At this time, when trying to cast the value of post to the String type, an error of class dev.logue.app.models.Post cannot be cast to class java.lang.String occurs.
Also, it seems that the model values cannot be expanded normally. When fetching the title, the value cannot be fetched without using the method like post.get('title') instead of post.title. At least JTwig was able to get the value correctly this way.
The text was updated successfully, but these errors were encountered:
An error occurs when send an object to a child template with the with statement of include.
At this time, when trying to cast the value of post to the String type, an error of
class dev.logue.app.models.Post cannot be cast to class java.lang.String
occurs.The contents of the post are as follows:
Note: dev.logue.app.models.Post is child class of org.javalite.activejdbc.Model.
Also, it seems that the model values cannot be expanded normally. When fetching the
title
, the value cannot be fetched without using the method likepost.get('title')
instead ofpost.title
. At least JTwig was able to get the value correctly this way.The text was updated successfully, but these errors were encountered: