Skip to content

Instantly share code, notes, and snippets.

View drewhamlett's full-sized avatar
Verified

Drew Hamlett drewhamlett

Verified
  • Untappd
  • Wilmington, NC
View GitHub Profile
// -- Module creation
var Main;
(function (Main) {
var Person = (function () {
function Person(name) {
this.name = name;
}
Person.prototype.sayHello = function () {
return "Hello, " + this.name;
@drewhamlett
drewhamlett / Dynamic.scala
Created September 6, 2012 15:01
Render dynamic views with Play 2.0
package helpers
import play.api.Play
import play.Logger
import java.lang.reflect.Method
/**
* The Dynamic object is responsible for calling on static pages via a keyword
* This makes updating and adding pages easier without having to add routes for the pages
*/