I have a card macro to create a crad with several optional parameters. If
an optional parameter is missing OR not given, then the macro ignore that
part!
\define card(header:"Empty", title:"Empty" text:"Empty",footer:"Empty",
width:"" class:"")
<div class="card mb-3 $class$" style="width:$width$;">
<$reveal type="nomatch" default="Empty" text=$header$ >
<div class="card-header">$header$</div>
</$reveal>
<div class="card-body">
<$reveal type="nomatch" default="Empty" text=$title$ >
<div class="h5 card-title">$title$</div>
</$reveal>
<$reveal type="nomatch" default="Empty" text=<<__text__>> >
<div class="card-text"><<__text__>></div>
</$reveal>
</div>
<$reveal type="nomatch" default="Empty" text=<<__footer__>> >
<div class="card-footer text-muted">$footer$</div>
</$reveal>
</div>
\end
This macro use reveal widget! If you look the raw html produced by TW you
will see div generated inside span tag.
Is this a good practice in TW and html5? Is it valid?
p.s: It is important for me to have a clean code, easy to understand and
follow standards (like html5 here)
Mohammad
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/08970da2-8442-4ee2-914f-61208adaeb94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.