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
class Admin < BaseModel | |
table do | |
column name : String | |
column user_id : Int64 | |
end | |
end |
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
// My User List View | |
module.exports = View.extend({ | |
template: require('../templates/userList.jade'), | |
autoRender: true, | |
render: function() { | |
this.renderWithTemplate(); | |
this.renderCollection( | |
this.collection, | |
userDetail, | |
this.el.querySelector('.itemContainer')) |
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
import {inject} from 'aurelia-framework'; | |
import {Validation} from 'aurelia-validation'; | |
@inject(Validation) | |
export class Person{ | |
firstName = 'Dave'; | |
lastName = 'Simmons'; | |
constructor(validation) { |
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
bower_components | |
css | |
images | |
js | |
robots.txt | |
priv/static/bower_components: | |
polymer | |
webcomponentsjs |
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
def parse(self, text): | |
# Basically, r_tag.split will split the text into | |
# an array containing, 'non-tag', 'tag', 'non-tag', 'tag' | |
# so if we alternate this variable, we know | |
# what to look for. This is alternate to | |
# line.startswith("{{") | |
in_tag = False | |
extend = None | |
pre_extend = True |