Skip to content

Latest commit

 

History

History
96 lines (57 loc) · 1.46 KB

File metadata and controls

96 lines (57 loc) · 1.46 KB

Markout Refactor v0.5

Architecture


Eliminate DOM dependence card

How — Redesign DOM-related functionality by extending the pseu·dom interface and using Custom Elements.

Details
  • A <li> can be composed as a <markout-li> but easily rendered as either or something completely different.

  • A <hgroup> can either be inferred from <markout-article> nodes.

  • A <custom-element> can be used to augment the compositional operations.

Why — Avoid deep replaceWith operations and render away from the DOM.


Use OCAP encapsulation

How — Create a plugin-like design that uses endowments

Why — Improve portability and testing.


Testing


Refactor by Specs card

How — Specs exported from .spec.js files that live next to each source and bundled file.

Details
  • Standalone testing with/out harnessing.
  • Expansive testing with harnessing.

Why — A TDD variant emphasizing on modularity, portability and continuous improvement.


Deployment

Documentation