We noticed recently on Envato Market that a text scenario had display issues when the corresponding HTML version had a node-specific stylesheet.
Node-specific stylesheets don't make sense for text scenarios, so let's limit them to HTML.
Edit: I've moved the decision-making logic up into the view model, plus extended this pattern to guard against including node-specific JavaScript on text-only templates.
We noticed recently on Envato Market that a text scenario had display issues when the corresponding HTML version had a node-specific stylesheet.
Node-specific stylesheets don't make sense for text scenarios, so let's limit them to HTML.
Edit: I've moved the decision-making logic up into the view model, plus extended this pattern to guard against including node-specific JavaScript on text-only templates.