Elvelind Grandin wrote:
the correct url is
http://groups.google.com/group/genshi/browse_thread/thread/d98a7e5667764905/beb2f947d04ee357#beb2f947d04ee357

D'oh, thanks for correcting that.

I've modified the Genshi snippets to make another version for Kid.
You'll need to install the Vim scripts for Kid and snippetsEmu:
* http://www.vim.org/scripts/script.php?script_id=1482
* http://www.vim.org/scripts/script.php?script_id=1318

Then paste the script below into
~/.vim/after/ftplugin/kid_snippets.vim.  If there's an appropriate
place in SVN I'll put it there.  When the website's back up I'll check
the Wiki for a good place.

if !exists('loaded_snippet') || &cp
   finish
endif

let st = g:snip_start_tag
let et = g:snip_end_tag
let cd = g:snip_elem_delim

runtime after/ftplugin/xhtml_snippets.vim

exec "Snippet $ ${".st.et."}".st.et
exec "Snippet nspy xmlns:py=\"http://purl.org/kid/ns#\"".st.et
exec "Snippet attrs
py:attrs=\"".st.":D('select(\'@*\')')".et."\"".st.et
exec "Snippet content py:content=\"".st.et."\"".st.et
exec "Snippet def py:def=\"".st.et."\"".st.et
exec "Snippet extends py:extends=\"".st.et."\"".st.et
exec "Snippet for py:for=\"".st.et." in ".st.et."\"".st.et
exec "Snippet if py:if=\"".st.et."\"".st.et
exec "Snippet layout py:layout=\"".st.et."\"".st.et
exec "Snippet match py:match=\"".st."path".et."\"".st.et
exec "Snippet replace py:replace=\"".st.et."\"".st.et
exec "Snippet strip py:strip=\"".st.et."\"".st.et


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to