-
-
Save rossabaker/4988754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-@ val title: String | |
-@ val headline: String = title | |
-@ val body: String | |
script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js") | |
script(src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js") | |
!!! 5 | |
html(lang="en" ng-app) | |
head | |
title= title | |
body(ng-app) | |
#content | |
h1= headline | |
!= body | |
form | |
input(ng-model='form.title' name='title') | |
= title | |
The title is #{title} | |
\{{title}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script> | |
<!DOCTYPE html> | |
<html lang="en" ng-app="ng-app"> | |
<head> | |
<title>Scalatra: a tiny, Sinatra-like web framework for Scala</title> | |
</head> | |
<body ng-app="ng-app"> | |
<div id="content"> | |
<h1>Welcome to Scalatra</h1> | |
<p>Hello, Scalate!</p> | |
</div> | |
</body> | |
<form> | |
<input ng-model="form.title" name="title"/> | |
</form> | |
Scalatra: a tiny, Sinatra-like web framework for Scala | |
<The>title is Scalatra: a tiny, Sinatra-like web framework for Scala</The> | |
{{title}} | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment