- From: Mitar <
>
- To:
- Subject: Re: [PeerLibrary dev] Routing question (base.coffee)
- Date: Mon, 13 Oct 2014 17:25:11 -0700
Hi!
They are named routes, so that you can link to them from the templates.
So if you want to create a link:
<a href="{{indexPath}}">PeerLibrary</a>
This will be /, "index" is what was specified as "as", and then helper
is appended "Path".
The string you return from the function is the name of the template you
want to use.
Mitar
>
In Meteor.Router.add in base.coffee, do the "as" statements refer to
>
templates? If not, what do they refer to?
>
--
PeerLibrary, facilitating the global conversation on academic literature
https://peerlibrary.org/
http://blog.peerlibrary.org/
https://twitter.com/PeerLibrary
Archive powered by MHonArc 2.6.18.