PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/helpers.fy

http://github.com/bakkdoor/fancywiki
Unknown | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 2fbe4b40abaec2cd09ca412731f35b86 MD5 | raw file
 1def wiki_word: name {
 2  name to_s split map: 'capitalize . join
 3}
 4
 5def link_to: page_name {
 6  wiki_word: page_name
 7}
 8
 9def redirect_to: page {
10  redirect: $ link_to: $ page name
11}