Sha256: 95168feb720534e84310e8edce1c660a9c8123f310cb5b014c9f9d7a2f1ef6b8

Contents?: true

Size: 482 Bytes

Versions: 8

Compression:

Stored size: 482 Bytes

Contents

<%- app_name = class_name.sub(/./) {|a| a.downcase } %>
<%- page_method_name = app_name + "Page" %>
rio.apps.<%= app_name %> = rio.Application.create({
	require: ["pages/<%= file_name %>_page"],
	requireCss: ["css_reset", "<%= file_name %>"],
	routes: {
		"": "<%= page_method_name %>"
	},
	attrAccessors: [],
	attrReaders: [],
	methods: {
		initialize: function(options) {
		},
	
		<%= page_method_name %>: function() {
			return new rio.pages.<%= class_name %>Page();
		}
	}
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riojs-0.0.7 generators/rio_app/templates/app.js
riojs-0.0.6 generators/rio_app/templates/app.js
riojs-0.0.5 generators/rio_app/templates/app.js
riojs-0.0.4 generators/rio_app/templates/app.js
riojs-0.0.3 generators/rio_app/templates/app.js
riojs-0.0.2 generators/rio_app/templates/app.js
riojs-0.0.1 generators/rio_app/templates/app.js
riojs-0.0.0 generators/rio_app/templates/app.js