Re: emitting custom html5 elements from ionic
jon judge <[email protected]> Tue, 22 Apr 2014 00:27:31 -0700 (PDT)
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
So to try to understand the underlying problem here, it's this:
?- atom(div).
true.
?- atom(ion-list).
false.
?- compound(ion-list).
true.
?- atom('ion-list').
true.
.. wrapping the element name in quotes forces it to be interpreted as an
atom, rather than a term. But since in the case of an element without a
dash eg. div, or h1, then it is already atomic, so doesn't need single
quotes. So this works fine:
div([id='mydivid'], [h1('divy h1 content')]),
And since this outputs the same thing as having quotes around div and h1..
'div'([id='mydivid'], ['h1'('divy h1 content')]),
.. perhaps I could just simply wrap /all/ my element names in single
quotes.. this will keep the code appearance consistent between 'div' and
'ion-list'. More quotes overall/some redundant, but more visually
consistent.
--
View this message in context: http://swi-prolog.996271.n3.nabble.com/emitting-custom-html5-elements-from-ionic-tp14844p14860.html
Sent from the SWI Prolog mailing list archive at Nabble.com.