diff options
author | mattn <mattn.jp@gmail.com> | 2011-10-28 10:22:20 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2011-10-28 10:22:20 +0900 |
commit | 65d61396541c563ede37de7abd052453af5e5648 (patch) | |
tree | 9cb7c84592e8524f73f54e7d3a4913b255c536e2 /doc | |
parent | cb98d68e685247afe5ce09a9da734acda9669875 (diff) | |
download | vim-sonictemplate-65d61396541c563ede37de7abd052453af5e5648.tar.gz vim-sonictemplate-65d61396541c563ede37de7abd052453af5e5648.tar.bz2 vim-sonictemplate-65d61396541c563ede37de7abd052453af5e5648.zip |
add {{_if_:foo;bar;baz}}.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/template-vim.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/template-vim.txt b/doc/template-vim.txt index 0e49f8c..c407eff 100644 --- a/doc/template-vim.txt +++ b/doc/template-vim.txt @@ -167,9 +167,16 @@ Note that I'm using pathogen-vim. |{{_expr_:xxx}}| : expression in vimscript. - For example, "Current Time:|{{_expr_:strftime('%c')}}|" will be + For example: "Current Time:|{{_expr_:strftime('%c')}}|" will be > Current Time: 2011/10/27 20:19:00 < + |{{_if_:expr;foo;bar}}| : ternary operator + + For example: When today is saturday, + "Today is |{{_if_:strftime('%w')%6;OrdinaryDay;Holiday}}|" will be +> + Today is Holiday +< ============================================================================== vim:tw=78:ts=8:ft=help:norl:noet:fen:fdl=0: |