Skip to content

Instantly share code, notes, and snippets.

View hatched's full-sized avatar

Jeff Pihach hatched

View GitHub Profile
@hatched
hatched / plugin.js
Last active December 16, 2015 15:59
YUI.add('testplugin', function(Y) {
var MyPlugin = Y.Base.create('testplugin', Y.Plugin.Base, [], {
initializer : function() {
this.objectProperty = {
def1: "foo",
def2: "bar"
}
@hatched
hatched / extension-view-parent.js
Created May 15, 2012 16:13 — forked from tivac/_README.md
View extension to support a simple Parent -> [ Child, Child, Child ] structure for Views
/*global YUI:true */
YUI.add("extension-view-parent", function(Y) {
var ViewParent;
ViewParent = function() {};
ViewParent.ATTRS = {
views : {
value : false
},
render : {
@hatched
hatched / app.js
Created February 24, 2012 21:03 — forked from rgrove/app.js
Simple Handlebars view engine for Express
var express = require('express'),
app = express.createServer();
app.configure(function () {
// Use our custom Handlebars-based view engine as the default.
app.register('.handlebars', require('./view'));
app.set('view engine', 'handlebars');
// ...
});
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.2.0/build/yui/yui.js&3.2.0/build/loader/loader.js"></script>
</head>
<body class="yui3-skin-sam yui-skin-sam">
<div id="tsTest_TabStrip">
<ul>
<li><a href="#tab1_Tab">Tab #1</a></li>
<li><a href="#tab2_Tab">Tab #2</a></li>