addMetaTag(tagname, attribs)
Function to add a Meta Tag to a web page.
Twig Usage
{{_AppHelper.addMetaTag('keywords', {'content': 'software, development'})}}
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
tagname | yes | string | Name of Meta Tag eg. title, keywords, description etc. |
attribs | yes | array | Other attributes of meta tag. eg. content, charset etc. |
Response Example
<meta name='keywords' content='software, development'>
Updated about 7 years ago