aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/html/pattern.stpl11
1 files changed, 5 insertions, 6 deletions
diff --git a/template/html/pattern.stpl b/template/html/pattern.stpl
index 61a1c78..8e2cf12 100644
--- a/template/html/pattern.stpl
+++ b/template/html/pattern.stpl
@@ -1,11 +1,10 @@
^\s*\zs\(\S.*\)\.div$
<div>
- {{$1}}
+ {{$1}}{{_cursor_}}
</div>
-^\s*\zs\(\S.*\)\.p$
- <p>{{$1}}</p>
-
-^\s*\zs\(\S.*\)\.h\([1-6]\)$
- <h{{$2}}>{{$1}}</h{{$2}}>{{_cursor_}}
+^\s*\zs\(\S.*\)\.\(p\|h[1-6]\)$
+ <{{$2}}>{{$1}}</{{$2}}>{{_cursor_}}
+^\s*\zs\(\S.*\)\.a$
+ <a href="{{_cursor_}}">{{$1}}</a>