How to use the ractive/build/ractive.runtime.partials function in ractive

To help you get started, we’ve selected a few ractive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hivewallet / hive-ios / app / lib / ractive / index.js View on Github external
};
};

var events = Ractive.events

events.enter = makeKeyDefinition(13);
events.tab = makeKeyDefinition(9);
events.escape = makeKeyDefinition(27);
events.space = makeKeyDefinition(32);

events.leftarrow = makeKeyDefinition(37);
events.rightarrow = makeKeyDefinition(39);
events.downarrow = makeKeyDefinition(40);
events.uparrow = makeKeyDefinition(38);

var partials = Ractive.partials

partials.svg_arrow = require('hive-svg/arrow.ract').template
partials.svg_cancel = require('hive-svg/cancel.ract').template
partials.svg_caret = require('hive-svg/caret.ract').template
partials.svg_close = require('hive-svg/close.ract').template
partials.svg_exit = require('hive-svg/exit.ract').template
partials.svg_help = require('hive-svg/help.ract').template
partials.svg_hex_large = require('hive-svg/hex_large.ract').template
partials.svg_history = require('hive-svg/history.ract').template
partials.svg_lock = require('hive-svg/lock.ract').template
partials.svg_logo_key = require('hive-svg/logo_key.ract').template
partials.svg_logo_stack = require('hive-svg/logo_stack.ract').template
partials.svg_logo = require('hive-svg/logo.ract').template
partials.svg_qr = require('hive-svg/qr.ract').template
partials.svg_expand = require('hive-svg/expand.ract').template
partials.svg_email = require('hive-svg/email.ract').template