Browse Source

I meant def not tag in this example

master
Marek Piasecki 2 years ago
parent
commit
5d1da2c763
  1. 3
      site/src/main.imba
  2. 2
      site/src/views/usage.imba

3
site/src/main.imba

@ -87,8 +87,9 @@ tag c-tag < c-el
tag c-tag-def < c-el tag c-tag-def < c-el
<self[c:blue4]> <self[c:blue4]>
"tag " data || "tag "
<[c:green5 d:inline]><slot> <[c:green5 d:inline]><slot>
tag c-let < c-el tag c-let < c-el
<self[c:blue4]> <self[c:blue4]>
"let " "let "

2
site/src/views/usage.imba

@ -217,7 +217,7 @@ tag view-usage
<b> "Validates value:" <b> "Validates value:"
<imba-code url="/{("one2four/" + R.params.one2four if R.params.one2four) || ''}"> <imba-code url="/{("one2four/" + R.params.one2four if R.params.one2four) || ''}">
""" """
{<c-tag-def> "valid{<.c-br> '('}{<c-el> 'v'}{<.c-br> ')'}"} {<c-tag-def data='def '> "valid{<.c-br> '('}{<c-el> 'v'}{<.c-br> ')'}"}
{<c-c> 0} {<c-op> '<'} v {<c-op> 'and'} v {<c-op> '<'} {<c-c> 4} {<c-c> 0} {<c-op> '<'} v {<c-op> 'and'} v {<c-op> '<'} {<c-c> 4}
{<c-c> 'R'}{<c-op> '.'}setters{<c-op> '.'}one2four {<c-op> '='} {<c-fl> 'do'} {<c-op> '|'}v{<c-op> '|'} valid{<.c-br> '('}v{<.c-br> ')'} {<c-fl> '?'} v {<c-fl> ':'} {<c-c> 'R'}{<c-op> '.'}params{<c-op> '.'}one2four {<c-c> 'R'}{<c-op> '.'}setters{<c-op> '.'}one2four {<c-op> '='} {<c-fl> 'do'} {<c-op> '|'}v{<c-op> '|'} valid{<.c-br> '('}v{<.c-br> ')'} {<c-fl> '?'} v {<c-fl> ':'} {<c-c> 'R'}{<c-op> '.'}params{<c-op> '.'}one2four

Loading…
Cancel
Save