addMetaTag(tagname, attribs)

Function to add a Meta Tag to a web page.

Twig Usage

{{_AppHelper.addMetaTag('keywords', {'content': 'software, development'})}}

Parameters

ParameterRequiredTypeDescription
tagnameyesstringName of Meta Tag eg. title, keywords, description etc.
attribsyesarrayOther attributes of meta tag. eg. content, charset etc.

Response Example

<meta name='keywords' content='software, development'>