Skip to content

Instantly share code, notes, and snippets.

@rossabaker
Forked from anonymous/gist:4988667
Last active December 13, 2015 22:59
Show Gist options
  • Save rossabaker/4988754 to your computer and use it in GitHub Desktop.
Save rossabaker/4988754 to your computer and use it in GitHub Desktop.
-@ 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}}
<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