I have the following snippet running the latest version of x-ray npm module.
I expect to the Meta and Metatags elements to be populated but they are not when i print out obj. What am i doing wrong?
var Xray = require('x-ray');
var x = Xray();
x('http://www.rte.ie', {
title: 'title',
metatags: x('meta', [{
name: 'meta@name',
description: 'meta@content'
}]),
meta: 'meta'
})(function (err, obj) {
console.log(obj);
})