I'm not sure whether you're referring to the logic in the template - I figured since you're using Jade templates you weren't one of those logic-less template people - or if you're referring to the data bootstrapping technique which is well known and common? Personally I like logic that is super specific to the view to be where it makes most sense, though passing the data already stringified to the template would've been fine.