UNPKG

@titanium/turbo

Version:

<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>

14 lines (11 loc) 377 B
const styler = require('../styler'); exports.parse = function(node, state) { return require('./base').parse(node, state, parse); }; function parse(node, state, args) { const linkHandler = node.getAttribute('onlink'); if (linkHandler) { node.setAttribute('onlink', `${styler.STYLE_EXPR_PREFIX}${linkHandler}`); } return require('./default').parse(node, state, args); }