Skip to content

Instantly share code, notes, and snippets.

Thiago Festa thiagofesta

Block or report user

Report or block thiagofesta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View components.my-component.js
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
export default Ember.Component.extend({
layout: hbs`<div>my-component using inline hbs. if I have a my-component.hbs this gets ignored.</div>`
});
View index.pug
html(lang="en", ng-app='test', ng-strict-di)
head
title(ng-bind="tfMetaTags.title")
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0")
meta(name="fragment", content="!")
meta(ng-repeat="(key, value) in tfMetaTags.properties", name="{{key}}", content="{{value}}")
base(href="/")
View backbone_super.js
// This method gives you an easier way of calling super
// when you're using Backbone in plain javascript.
// It lets you avoid writing the constructor's name multiple
// times. You still have to specify the name of the method.
//
// So instead of having to write:
//
// User = Backbone.Model.extend({
// save: function(attrs) {
// this.beforeSave(attrs);
View test.json
{"user":{"id":"1","firstName":"John"}}
You can’t perform that action at this time.