cmawhorter / fancy

1 stars 2 forks source link

No way to resolve a page by id? #4

Open cmawhorter opened 8 years ago

cmawhorter commented 8 years ago

The way to resolve a page by id is not obvious. This is a common use-case e.g. <a title="Go to home page" href="<%= findPageById('home').url() %>"> and it should be simplified.

Currently, the way to do this is:

<% uses('id', 'home').as('homePages') %>
<a href="<%= homePages[0].url() %>">

But that is not possible because of #3, which means there is currently no way to do this.