Exemplo n.º 1
0
void HtmlImage::onRender(HtmlWriter &writer)
{
	writer.openTag(_S("img"));
	renderAttributes(writer);
	writer.selfCloseTag();
	writer.writeLine();
}
Exemplo n.º 2
0
void HtmlLinkTag::render(HtmlWriter &writer)
{
	writer.openTag(_S("link"));

	if(m_rel.empty() == false)
        writer.writeAttribute(_S("rel"), m_rel);
	if(m_href.empty() == false)
		writer.writeAttribute(_S("href"), m_href);
	if(m_type.empty() == false)
        writer.writeAttribute(_S("type"), m_type);
	if(m_title.empty() == false)
        writer.writeAttribute(_S("title"), m_title);
	if(m_hreflang.empty() == false)
        writer.writeAttribute(_S("hreflang"), m_hreflang);

	//writer.closeTag();
	writer.selfCloseTag(); // 0.13 RC2
}