msavin / lamma Goto Github PK
View Code? Open in Web Editor NEWLayout Manager for Meteor-Blaze apps
Layout Manager for Meteor-Blaze apps
I've been trying to get Lamma working with Parrot.
I've created a bare meteor app, remove StaticHTML, added Blaze, Parrot and Lamma. https://github.com/mozfet/lamma-example
The main layout is rendered in /client/main.html
using {{>main_layout}}
.
In /ui/layout/main.js
I register body
and side
layouts. Both have Parrot: true
.
Setting the route to #foo
cause the layout to be set {body: "foo", side: "foo"}
. This is as expected and I have confirmed in the browser console using Layout.all(). I also confirm the route is triggered by logging from /imports/startup/client/routes
, and where Parrot is initialized with home: "foo"
, and two routes are registered:
Router.register({
foo: parameters => {
console.log('foo route parameter:', parameters)
},
bar: parameters => {
console.log('bar route parameters:', parameters)
}
})
In /ui/layout/main.html
I have two buttons, on linking to #foo
and the other to #bar
, and I layout the body and side in the main layout using {{>Layout name="body"}}
and {{>Layout name="side"}}
.
When the page is loaded, the main layout is shown, the route is logged, and the default is foo. Nothing wrong sofar. When you click on #bar
, the route is logged, Layout.all() reports being updated as expected, however the layout is not updated in the browser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.