pandell / Spagety

Other
0 stars 0 forks source link

href data-binding #1

Open cjasinsk opened 10 years ago

cjasinsk commented 10 years ago

An href / page-href custom data-binding should be created to allow for relative paths, so that a links can easily refer to parts within their own module, without having to know the entire structure of the site.

ex:

<div data-bind="page: {id: 'test'}">
    <div data-bind="page: {id: 'subPg'}">
        <a data-bind="href: '../'">Go Back</a>
    </div>
</div>