processing a 'hard link'

7 views
Skip to first unread message

Terrence Brannon

unread,
Oct 8, 2008, 2:13:46 PM10/8/08
to nagare...@googlegroups.com
The Nagare approach is to have Nagare generate URLs and attach an action
at the time of URL generation.

This works fine for both functional and imperatively generated HTML.
However, the question becomes what to do when you are using meld and you
produce an HTML document like this -
http://www.bitbucket.org/metaperl/gnumatrix/src/tip/gnumatrix/static/html/index.html

which has 'hardcoded' links like this:

<a class="bannerLink" href="/faq">FAQ</a>

Should I rewrite them using some Nagare functions and attach a callback at the same time?

Perhaps the presentation tier docs should be expanded with some info like this.

Terrence Brannon

unread,
Oct 8, 2008, 3:45:59 PM10/8/08
to Nagare users


On Oct 8, 2:13 pm, Terrence Brannon <metap...@gmail.com> wrote:

>
> Perhaps the presentation tier docs should be expanded with some info like this.

I think the Presentation Tier should link to 'Callbacks and Forms'

What I'm guessing is the way to do this is:

anchor_tag = find_meld('my_faq_anchor_tag')
anchor_tag.action(self.render_faq)

apoirier

unread,
Oct 8, 2008, 7:20:20 PM10/8/08
to Nagare users
Exactly. Or even,
`find_meld('my_faq_anchor_tag').action(self.render_faq)`
Reply all
Reply to author
Forward
0 new messages