Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Adding Node api

Choose a tag to compare

@lukejpreston lukejpreston released this 22 Feb 11:46
· 359 commits to master since this release

Now you can require tal and get the page strategies
e.g.

var antie = require('tal')
var body = antie.getPageStrategyElementSync('default', 'body').data

You can also use getPageStrategyElement which takes a third parameter of a callback
The data returned is an object with either a value "noSuchStrategy" or "data"