Meteor question: How do I toggle between 2 "pages"
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

How do I make it so that when I click Banded, then {{> banded}} shows, and if I click on Realty, then {{> realty}} shows? The concept of page doesn't exist in Meteor (unless you use the Meteor smart package for pages)

https://github.com/akshatpradhan/html-template-patterns/commit/b9063c100832c551ea5d413c03849fb5d0dd4279#L0R6

If you could fork and send a pull request that would be great.

Thank you.

awarded to jmgunn87

Crowdsource coding tasks.

1 Solution

whoa, omg! i'm going to check this out now.
apr over 8 years ago
why omg?
jmgunn87 over 8 years ago
Because it's so much easier to learn this way. I can look at your change, see exactly what happens, replicate, and then try to break it.
apr over 8 years ago
ah yes the power of git diffs.
jmgunn87 over 8 years ago
Can you provide the documentation for .realty()? Also, I didn't know you could call Templates that way. I thought all template handling was done through <template name=""></template>
apr over 8 years ago
Also, when click on Realty, or Blog, how do I get the "active" state to show?
apr over 8 years ago
if you tip me I might tell. :D. You can call templates using Template.realty() which will return the rendered html which you can insert into the dom
jmgunn87 over 8 years ago
Tipped, are you updating the pull request?
apr over 8 years ago
yeah gimme a second :)
jmgunn87 over 8 years ago
While I have you, would you ever find any use for a site like this? Perhaps when a client asks for a website, you can say, "well, we have these types of options, what do you like the most?" I'm keeping this an open source site if people find it useful.
apr over 8 years ago
updated the pull request
jmgunn87 over 8 years ago
possibly. It might be a good idea to develop it a bit further but you could provide some sort of design prototyping/revisioning app for clients yes.
jmgunn87 over 8 years ago
View Timeline