root/veekun/trunk/static/link.tt

Revision 116, 1.2 kB (checked in by eevee, 20 months ago)

Implemented fairly simple page caching for the Pokedex.
As a side effect that I ended up not using but which should have been done, changed the META title var to page_title.
Created a tmp directory to hold compiled templates and caches.

Line 
1[% META page_title = 'Link to me' %]
2
3<h1>Standard button</h1>
4<p><img src="/images/button.png" alt=""/></p>
5<p>Hotlinking to it is okay (and probably better for smaller sites, since I might change it), but please mirror if you're planning to slap it on the Google homepage or something that gets similar traffic.</p>
6
7[% generic_dex_form = BLOCK -%]
8<form action="[% c.uri_for('dex') %]" method="get" style="margin: 0;"><p style="margin: 0;">
9    <input type="text" name="entry" style="width: 15em; background: url([% c.req.base %]images/pokedex-fade.png) white no-repeat right center; font-family: monospace;"/>
10    <input type="submit" style="display: none;"/> <input type="reset" style="display: none;"/>
11</p></form>
12[%- END %]
13
14<h1>Direct Pok&eacute;dex form</h1>
15<p>If you'd like to stick my Pok&eacute;dex form somewhere on your site, feel free to copy/paste this somewhere.  You can, of course, restyle it to your heart's content.</p>
16<p><code>[% generic_dex_form | nohtml %]</code></p>
17<hr/>
18<p>You will get something like the following:<p>
19[% generic_dex_form %]
20<p>I am aware that this sucks and will be improving upon it later, including completion and such.</p>
Note: See TracBrowser for help on using the browser.