Is it possible to compile Coffeescript code in script tags in html files? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is there a way to send CoffeeScript to the client's browser and have it compiled to JavaScript there? Is there a simple way to compile Coffeescript that is inside <script> tags inside html, or do you usually have all Coffeescript in separate files? 回答1: Responding to dvcolgan's clarifying comment: So, you want to have an HTML file on the server with inline CoffeeScript that gets served as HTML with inline