Refer them to the framework's documentation
Certainly a better idea but difficult given the moderation policy on SO and sister sites about self-contained answers rather than off-site links. I can see why they want such an approach; it increases the value of the site, reduces the SEO juice shared with other sources and reduces the risk of link rot. This policy creates a bias towards short direct answers lacking in context, making a naked code snippet more likely to get upvoted.