Ember View created with performance in mind, instead of using any template library, the DOM code is injected directly from the javascript.
Loading this screen of the app takes aprox 100ms even on slowest computers/mobiles.
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head><script type="text/javascript"> | |
/* iubenda ws plugin */ | |
/* app7 */ | |
</script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta class="swiftype" name="tags" data-type="string" content="en"> |
// app/components/add-todo.js | |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
submit() { | |
const text = this.get('text'); | |
this.get('onAdd')(text); |
doctype html | |
html | |
head | |
title Curios | |
script(src="../bower_components/jquery/dist/jquery.js") | |
script(src="../bower_components/bootstrap/dist/js/bootstrap.js") | |
link(rel="stylesheet", type="text/css", href="../bower_components/bootstrap/dist/css/bootstrap.css") | |
link(rel="stylesheet", type="text/css", href="main.css") | |
body |
var express = require('express'); | |
var sys = require('sys'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY"; | |
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET"; | |
function consumer() { |
// Eloquent Javascript | |
http://eloquentjavascript.net/2nd_edition/preview/ | |
// Object Oriented Javascript | |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript |
Built with SASSMEISTER on http://t.co/SQObX9GVZO