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
I have a template that takes in a user context object and renders a mustache template to show either a login link if the object does not exist or an account link if it does.
Sometimes when I deploy my Play application to production, a partial sometimes doesn't seem to pick up the data, even though logging on the server side indicates that I'm passing a valid object to the scala template. I have not yet figured out how to reproduce this consistently but seem to notice it more when the app is restarted.
Any ideas on anything I can use to debug this?
My scala template is this:
@(title: String, appName: String, homepageContext: models.HomepageView) @import org.jba.Mustache
Hi,
I have a template that takes in a user context object and renders a mustache template to show either a login link if the object does not exist or an account link if it does.
Sometimes when I deploy my Play application to production, a partial sometimes doesn't seem to pick up the data, even though logging on the server side indicates that I'm passing a valid object to the scala template. I have not yet figured out how to reproduce this consistently but seem to notice it more when the app is restarted.
Any ideas on anything I can use to debug this?
My scala template is this:
@(title: String, appName: String, homepageContext: models.HomepageView)
@import org.jba.Mustache
@main(title, appName) {
@Mustache.render(appName, homepageContext)
}
The template loads the partial like this:
{{> header}}
Here's a watered down version of the partial:
{{#user.firstName}}
Log Out
{{/user.firstName}}
{{^user.firstName}}
Login
{{/user.firstName}}
-Keith
The text was updated successfully, but these errors were encountered: