hurlyburly

2.42.0 • Public • Published

hurlyburly

Todo Application based on the pookie object tree & cuddlemuffin object store.

User Interface: Template Reconciler Stream

HTML

<div class="card text-white bg-info shadow">
  <ul data-command="stream --source Applications/Todo/Today --template todo-item-template --reconciler plain | load " class="list-group list-group-flush"></ul>
</div>


<div class="d-none template" id="todo-item-template">
    <li class="list-group-item bg-info text-white">
      <input data-variable="text" type="text" class="form-control todo-text text-white" placeholder="Enter task text">
    </li>
</div>

Client

const transfusion = require('../../transfusion/client');

const fs = require('fs');
const path = require('path');
const util = require('util');

const port = 8081;
const vfs = fs.readFileSync( path.join(__dirname, '..', 'vfs.txt') ).toString();

const reconcilers = {
  'plain': require('./reconcile.js')
}

transfusion({ vfs, reconcilers, port, })

.on('command.bork', () => {
  console.log('BORK, BORK, BORK!!!');
});

Server

const transfusion = require('../../transfusion/server');

const fs = require('fs');
const path = require('path');
const util = require('util');

const cuddlemuffinData =  path.join(__dirname, '..', 'cuddlemuffin-data');
const port = 8081;

transfusion({ cuddlemuffinData, port, });

Readme

Keywords

none

Package Sidebar

Install

npm i hurlyburly

Weekly Downloads

9

Version

2.42.0

License

ISC

Unpacked Size

478 kB

Total Files

41

Last publish

Collaborators

  • fantasyui.com