Completion/templating snippets for XPTemplate vim plugin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

69 lines
1.6 KiB

  1. " Personal additions
  2. "
  3. XPTemplate priority=personal
  4. XPTvar $blank ' '
  5. XPT copy_comment hidden
  6. <!-- © Copyright `strftime("%Y") $author^. All Rights Reserved. -->
  7. XPT aut abbr alias=meta " <meta name="description"...
  8. XSET meta_name=author
  9. XSET meta_content=$author
  10. XPT desc abbr alias=meta " <meta name="description"...
  11. XSET meta_name=description
  12. XSET meta_content=Echo('')
  13. XPT key abbr alias=meta " <meta name="keywords"...
  14. XSET meta_name=keywords
  15. XSET meta_content=Echo('')
  16. XPT skel abbr synonym=html|xhtml " xhtml skeleton
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  18. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html>
  20. <head>
  21. `:title:^
  22. `:contenttype:^`
  23. `more^ ^
  24. </head>
  25. <body>
  26. `cursor^
  27. </body>
  28. </html>
  29. `:copy_comment:^
  30. XPT link " <link rel="stylesheet" ..>
  31. <link rel="stylesheet" type="text/css" href="`stylesheets/^`base.css^" />
  32. XPT jquery " jquery script link
  33. XSET dir=ChooseStr( 'scripts/', 'javascripts/' )
  34. <script language="javascript" type="text/javascript" src="`dir^jquery`^.js"></script>
  35. XPT di abbr wrap=content " <div id="">.</div>
  36. XSET val=$blank
  37. XSET content=$blank
  38. <div` id="`val`"^>`content^</div>
  39. XPT div abbr wrap=content " <div id..>\n\n</div>\n<!-- id..
  40. XSET val=Echo('')
  41. XSET val|post=Echo(V()=~'\V\^ id=""\$\|val' ? '' : V())
  42. XSET content=Echo('')
  43. XSET content|post=Echo(V()=~'\V\^ \$\|val' ? '' : V())
  44. <div` id="`val`"^>
  45. ` `content^`cursor^
  46. </div>
  47. <!--`val^ -->
  48. XPT ol abbr
  49. <ol` `att?^>`
  50. `...{{^
  51. <li>`^</li>`
  52. `...^`}}^
  53. </ol>
  54. XPT ul abbr alias=_tagAttr
  55. XPT diva " tips
  56. `:div( { 'content' : ':a:' } ):^