Toggle navigation
Moya Home
Reference
Tags
Tutorial
↑ Index
<make-token> →
← <log-warn>
<macro>
define a re-usable block of code
name
macro
xml namespace
http://moyaproject.com
Defines a
macro
.
Example
<
macro
docname=
"greet"
>
<
echo
>
Hello,
$
{name}
!
<
echo
>
<
/macro
>
inherited attributes
name
purpose
type
required?
default
choices
if
Conditional expression
expression
No
yes
add-feed-item
admin-only
append
arg
argument
ask
attempt
attribute
auth-check
bbcode
bool
break
breakpoint
cache-return
call
call-element
case
catch
check-modified
choice
choices
choose
command
content
continue
copy
css
data-tag
datetime
debug
dec
dedent
default-case
default-markup
defer
delete-cookie
denied
dict
do
doc
done
echo
elif
else
enum
exit
extend
false
feed
filter
filter-seq
find-element
find-elements
fire
float
for
for-children
forbidden
get-children
get-data
get-data-item
get-element
get-enum
get-fq-url
get-locale
get-markup-choices
get-markup-types
get-parent-element
get-tag-text
get-timezone-groups
get-timezones
get-url
group
handle
highlight
html
if
if-get
if-post
import
inc
include-css
include-js
input
inspect
install
int
js
json
let
let-parallel
let-str
lines
link
list
log
log-debug
log-error
log-fatal
log-info
log-warn
macro
make-token
map
map-dict
markdown
markup
markup-insert
max
media-url
middleware
min
mount
mountpoint
moya
node
none
not-found
now
odict
option
page
pop
preflight
process-markup
profile-python
progress
progress-msg
qualify-elementref
read-data
redirect
redirect-to
remove
render
render-all
render-content
render-template
render-template-fs
repeat
request
request-get
request-post
resolve-template
respond
response
return
return-dict
return-false
return-scope
return-str
return-true
rewrite
rewrite-to
scope
scope-node
section
section-body
section-content
section-css
section-footer
section-head
section-includecss
section-includejs
section-js
section-jsfoot
serve
serve-content
serve-file
serve-json
serve-json-object
serve-template
serve-template-fs
serve-xml
server
set
set-cookie
set-header
set-item
set-language
set-locale
signature
sleep
slice
sort
str
sum
switch
system-call
tag
thread
throw
time-span
timer
title
trace
true
try
update
url
value
var
view
wait-on-threads
while
widget
widget-yield
with
wrap-tag
yield