racke / Template-Flute

Template::Flute - Modern designer-friendly HTML templating Engine
Other
11 stars 12 forks source link

base uri rewrite applied too early #161

Open SysPete opened 8 years ago

SysPete commented 8 years ago

https://metacpan.org/pod/Template::Flute#uri

The uri rewrite magic happens before tokens are applied.

With this spec:

<value name="create-button" field="request.path" target="href" op="prepend"/>

and this html:

<a class="btn btn-primary create-button" href="/create">Create <span class="class">Thing</span></a>

With an app mounted on /base and request->path being /admin/foo I would expect the following href:

/base/admin/foo/create

but we get:

/admin/foo/base/create