The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.15-20-00'
}).use('gallery-handlebars-loader', function(Y) {
var handlebars = new Y.MSA.HandlebarsLoader(),
cfg = {
type : 'box',
url : 'http://assets.freelas.net/91/images/themes/frl/logoNLen.png'
};
var template = handlebars.template('some-photo-hbs');
Y.one('#photo').set('innerHTML',template(cfg));
});
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.15-20-00'
}).use('gallery-handlebars-loader', function(Y) {
var handlebars = new Y.MSA.HandlebarsLoader(),
cfg = {
type : 'box',
url : 'http://assets.freelas.net/91/images/themes/frl/logoNLen.png'
};
var template = handlebars.load('http://www.mycombo.com/?myapp/some-photo.hbs');
Y.one('#photo').set('innerHTML',template(cfg));
});
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.15-20-00'
}).use('gallery-handlebars-loader', function(Y) {
var idPattern = /(.+?)(_(..))?\-(hbs)/,
handlebars = new Y.MSA.HandlebarsLoader({
autoLoad:true,
comboLoader:Y.config.combo,
idConvert:function(id){
var match = idPattern.exec(id);
return match[3] + '/' + (match[1] + "." + match[4]).replace("-","/");
}
}),
cfg = {
type : 'box',
url : 'http://assets.freelas.net/91/images/themes/frl/logoNLen.png'
};
var template = handlebars.template('some-photo-hbs');
Y.one('#photo').set('innerHTML',template(cfg));
});
/home/y/libexec/ant/bin/ant all Buildfile: build.xml [echo] Starting Build For gallery-handlebars-loader clean: init: [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp [echo] Starting Build For gallery-handlebars-loader -lint-server: [echo] Starting Build For gallery-handlebars-loader -node: [echo] For faster builds, install Node.js. -concatdebug: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/ant [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/ant -registerdebug: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp -prependdebug: -appenddebug: builddebug: -createcore: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp -loggerregex: buildcore: -rollupjs: -concatskins: -buildskins: -rollupcss: buildskins: -buildlangs: -rolluplangs: buildlangs: build: build-coverage: [echo] Creating coverage file for: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/gallery-handlebars-loader.js [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp minify: [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/gallery-handlebars-loader.js [yuicompressor] [yuicompressor] [WARNING] The symbol self is declared but is apparently never used. [yuicompressor] This code can probably be written in a more compact way. [yuicompressor] ,template:function(id){var ---> self <--- =this,raw;if(!Y. [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/gallery-handlebars-loader-min.js lint: [echo] Using Rhino. Install nodejs to improve jslint speed, or skip with -Dlint.skip=true [java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/gallery-handlebars-loader-coverage.js [java] - OK [java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-handlebars-loader/build_tmp/gallery-handlebars-loader.js [java] - OK local: deploybuild: [copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-handlebars-loader deployassets: deployskins: deploylang: deploydocs: deploy: all: BUILD SUCCESSFUL Total time: 3 seconds
All code on this site is licensed under the BSD License unless stated otherwise.