This file contains hidden or 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
| <div id='container'> | |
| <header>header</header> | |
| <div class='yui3-g' id='main'> | |
| <div> | |
| <div class='yui3-u-1-2' id='headings'></div> | |
| <div class='yui3-u-1-2' id='features'> | |
| <div class="yui3-g"> | |
| <div class='yui3-u-1-3' id='logo'> | |
| <div><img src='http://fpoimg.com/128x128'></div> | |
| </div> |
This file contains hidden or 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
| { | |
| "title": "This is my awesome tutorial", | |
| "authors": ["rgrove"], | |
| "tags": ["foo", "bar", "intermediate"], | |
| "other": "metadata" | |
| } | |
| --- | |
| This is my awesome tutorial |
This file contains hidden or 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
| ^/modules(?:/\*)?/?$ | |
| - /modules | |
| - /modules/ | |
| - /modules/* | |
| - /modules/*/ | |
| ^/modules/([\w;-]+)/?$ | |
| - /modules/node-base | |
| - /modules/node-base/ | |
| - /modules/node-base;autocomplete;escape |
This file contains hidden or 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
| history : new Y.HistoryHash(), | |
| COMPONENTS : { | |
| PageContentInfo : { | |
| requires : ['PageContentInfo'], | |
| initializer : '_initPageContentInfo' | |
| }, | |
| PageContentForum : { |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>LTEST</title> | |
| <!-- JS --> | |
| <script type="text/javascript" src="http://yui.yahooapis.com/combo?3.2.0/build/yui/yui-min.js&3.2.0/build/oop/oop-min.js&3.2.0/build/dom/dom-base-min.js&3.2.0/build/dom/selector-native-min.js&3.2.0/build/dom/selector-css2-min.js&3.2.0/build/event-custom/event-custom-min.js&3.2.0/build/event/event-base-min.js&3.2.0/build/node/node-base-min.js&3.2.0/build/event/event-synthetic-min.js&3.2.0/build/json/json-min.js&3.2.0/build/history/history-min.js&3.2.0/build/history/history-hash-ie-min.js"></script> | |
| <script> | |
| var Y = YUI().use('history'), | |
| HH; |
This file contains hidden or 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
| /** | |
| * Default resultListLocator used when a string-based YQL source is set and | |
| * the implementer hasn't already specified one. | |
| * | |
| * @method _defaultYQLLocator | |
| * @param {Object} response YQL response object. | |
| * @return {Array} | |
| * @protected | |
| * @for AutoCompleteBase | |
| */ |
This file contains hidden or 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
| YUI.add('autocomplete-jeremy', function(Y) { | |
| var Plugin = Y.Plugin; | |
| function ACListPlugin(config) { | |
| config.inputNode = config.host; | |
| // Render by default. | |
| if (!config.render && config.render !== false) { | |
| config.render = true; |
This file contains hidden or 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
| function getDescendants(node, includeSelf) { | |
| var descendants = [], | |
| i, len; | |
| for (i = 0, len = node.children.length; i < len; ++i) { | |
| descendants = descendants.concat(getDescendants(node.children[i], true)); | |
| } | |
| if (includeSelf) { | |
| descendants.push(node); |
This file contains hidden or 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
| function both(cssURLs, jsURLs, callback) { | |
| var cssDone, jsDone; | |
| function finish() { | |
| if (cssDone && jsDone) { | |
| callback(); | |
| } | |
| } | |
| LazyLoad.css(cssURLs, function () { cssDone = 1; finish(); }); |
This file contains hidden or 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
| var fs = require('fs'), | |
| fsPath = require('path'), | |
| http = require('http'), | |
| dust = require('dust'), | |
| util = require('./util'), // Our util, not Node's util. | |
| baseContext = dust.makeBase(util.merge( | |
| require('../conf/common'), |