kadirahq / blaze-plus Goto Github PK
View Code? Open in Web Editor NEWAdds Props and State Management functionality to Meteor's Blaze Template Engine.
Adds Props and State Management functionality to Meteor's Blaze Template Engine.
I would like to pass a helper function with arguments as a prop. Then from the child template I would like to call the function with arguments. How can I do that.
@arunoda , ive been trying to prove there was in fact a problem with Blaze's default behavior for the better part of an hour and I can't. Blaze doesn't have the problem Blaze+ attempts to solve.
Here's my repo: https://github.com/ultimatejs/blaze-plus-test-for-arunoda ...Examine test.js and set Session.set('name', 'whoami') and watch the rendered callbacks not logging in the console. And also do the thing you did where you manually change the DOM in the Elements tab of inspector. Whatever you enter remains.
I followed the sample code. Didn't know how this work but the $ template doesn't work inside a content block
{{>$ template="inputLabelSearch"}}
and the issue is
Exception from Tracker afterFlush function:
debug.js:41 Error: {{#each}} currently only accepts arrays, cursors or falsey values.
Can we use nested templates, like this? (base on flow-router-blaze-plus-example):
<template name="post">
<h3>Post Content</h3>
{{#if $loaded}}
{{#if $post}}
<span>Post Title</span>: {{$post.title}}
<div>
{{> Template.dynamic template=nestedTemplate}} // like so ?
{{>$ template=nestedTemplate }} // or like so ?
</div>
{{else}}
Not Found
{{/if}}
{{else}}
Loading...
{{/if}}
</template>
And route:
FlowRouter.route('/settings', {
action: function(params) {
BlazeLayout.render('layout', {main: 'post', nestedTemplate: "settings"});
}
});
Seems now it's impossible.
How to be when we have basic layout where in {{>$ template=main slug=prop$slug }} changes our main templates and one of this templates 'settings' have tree tabs(buttons): that change route and 'nested template in settings' ?
With blaze-layout and flow-router it's work perfect, but when added blaze-plus - no.
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.