php - How to embed Scala in HTML? -
coming background in php, used idea can embed server-side scripts html pages. searching online, haven't been able find simple echo <h1>hello world</h1>;
equivalent in scala besides using web framework lift. can scala?
php exception in being language designed embedded in html page. apache has mod_php
you. scala, many other languages, requires start web server respond requests , render html. can use frameworks lift or play, or can make servlet-based app , deploy servlet container.
you could set apache server run cgi scripts , insert .scala file run scala
command - incredibly slow have start java vm every time. wouldn't recommend other scratching mental itch.
Comments
Post a Comment