We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add modules option for makeHTMLDriver
import Rx from 'rx' -import toHTML from 'snabbdom-to-html' +import init from from 'snabbdom-to-html/init' +import AttrsModule from 'snabbdom-to-html/modules/attributes' +import StyeModule from 'snabbdom-to-html/modules/style' import {transposeVTree} from './transposition' function makeBogusSelect() { return function select() { return { observable: Rx.Observable.empty(), events() { return Rx.Observable.empty() }, } } } +const defaultModules = [ + AttrsModules, StyleModule, +] -function makeHTMLDriver() { +function makeHTMLDriver({modules = defaultModules} = {modules: defaultModules}) + const toHTML = init(modules) return function htmlDriver(vtree$) { let output$ = vtree$.flatMapLatest(transposeVTree).last().map(toHTML) output$.select = makeBogusSelect() return output$ } } export {makeHTMLDriver}
The text was updated successfully, but these errors were encountered:
Also need to add something to the documentation for this
Sorry, something went wrong.
No branches or pull requests
Overview
Add modules option for makeHTMLDriver
The text was updated successfully, but these errors were encountered: