Re: [Catalyst] Re: javascript in Catalyst using Template Toolkit

2007-12-23 Thread Jonathan Rockway
On Sat, 2007-12-22 at 09:06 -0500, kevin montuori wrote: (defun ii-insert-catalyst-url () (interactive) (let ((path (read-from-minibuffer URI: ))) (insert (format a href=\[%% Catalyst.uri_for('%s') %%]\/a path)) (backward-char 4))) This would be better written as:

Re: [Catalyst] Re: javascript in Catalyst using Template Toolkit

2007-12-22 Thread Kieren Diment
On 23 Dec 2007, at 01:06, kevin montuori wrote: obCatalyst: let me add that if you use emacs :| you could define a little function like: (defun ii-insert-catalyst-url () (interactive) (let ((path (read-from-minibuffer URI: ))) (insert (format a href=\[%%

[Catalyst] Re: javascript in Catalyst using Template Toolkit

2007-12-22 Thread kevin montuori
KD == Kieren Diment [EMAIL PROTECTED] writes: KD On 23 Dec 2007, at 01:06, kevin montuori wrote: (add-hook 'html-mode-hook KD well tt-mode would be more sensible. my mileage varied. the font-locking of TT keywords would be ok but the the completion, indention, and validation

Re: [Catalyst] Re: javascript in Catalyst using Template Toolkit

2007-12-21 Thread Daniel McBrearty
heh. i'm picturing how that request would have gone over with the firewall group at the last fortune 500 i worked for. yes kevin, under those circumstances you likely wouldn't do it that way. on the other hand, if you are running your app on a server that you own and do admin for, and don't