0

I use flow-routing on meteor.js

I want the template is like:

<template name="layout">
{{>header}}
<div class="container">
    <div class="col-md-2">
  {{>Template.dynamic template=sidebar}}
</div>
<div class="col-md-8">
  {{>Template.dynamic template=main para=message}}
</div>
</div>
{{>footer}}
</template>

Can I use router to make the parameter message like:

FlowRouter.notFound = {
// Subscriptions registered here don't have Fast Render support.
subscriptions: function() {

},
action: function() {
    BlazeLayout.render('layout',{sidebar:'sidebar', main:'home',para='your input is wrong path.'})
}
};

How to pass the parameters into the dynamic template in flow-routing?

dharmatech
  • 8,979
  • 8
  • 42
  • 88
user504909
  • 9,119
  • 12
  • 60
  • 109

1 Answers1

0

You should have para:'Your ...', not para='Your ...' (note the colon).

tarmes
  • 15,366
  • 10
  • 53
  • 87