Skip to content

0.2.7 types TSelector

Ivan S Glazunov edited this page Feb 20, 2015 · 2 revisions

TSelector

type TSelector = string;

Simple string sintax for classes, id and attributes of tag.

In quotes "/' describing the attribute may be used string template.

Example

.abc.DcE.fGh-iJk#Id1#Id2[a0=http://localhost/logo.png,bC='http://localhost/logo.png'][D-e="http://localhost/logo.png",f_g'hI' "Jk"][alt=#item]

Result as a IAttributes:

{
	class: 'abc DcE fGh-iJk',
	id: 'Id2',
	a0: 'http://localhost/logo.png',
	bC: 'http://localhost/logo.png',
	'D-e': 'http://localhost/logo.png',
	'f_g': null,
	"'hI"': null,
	'"Jk"': null,
	alt: '#item'
}
Clone this wiki locally