QuantumJS
Edit Page
HTML changelog
What has changed in quantum-html for each release.
Initial public release of quantum-html.
buildDOMoptionsObjectFileTransform
Added
Returns the FileTransform function that converts parsed quantum source to virtual dom ( HTMLPage) pages using a series of EntityTransform functions.
buildHTMLoptionsObjectFileTransform
Added
A function for converting a HTMLPage (the output of the buildDOM) function to HTML.
It converts the file objects content to an HTML string and gives the dest of the file the .html extension.
fileTransformoptionsObjectFileTransform
Added
Builds a file transform that takes a File, converts it to HTML and then renames files to make a sensible directory structure for the site.
It applies the buildDOM, the buildHTML and then the htmlRenamer file transforms in sequence.
HTMLPage
Added
A prototype for storing transformed pages.
This type is created by the buildDOM function. It is designed to be used in the buildHTML function to convert from the transformed Array[Element] into stringified html content.
htmlRenamerFileTransform
Added
Returns a file transform that renames name.html to name/index.html and leaves index.html as it is.
This is to provide a better URL structure for sites so all html files are called index.html and therefore don't need to be directly referenced (e.g. example.com/my-page/ instead of example.com/my-page.html
paragraphTransformselectionSelectiontransformerEntityTransformArray[Element]
Added
An EntityTransform that converts the text in an entity into paragraphs.
This is mostly useful when writing content with a word-wrap column limit as you can break content onto multiple lines in the source whilst having it render as paragraphs on the page.
prepareTransformsentityTransformsObjectObject[EntityTransform]
Added
A function that flattens out namespaced entity transforms into a single object.
entityTransformsObject[EntityTransform]
Added
A function that returns a set of EntityTransform functions for use when rendering a page.
b
Added
Adds a <b> element
br
Added
Adds a <br> element
button
Added
Adds a <button> element
div
Added
Adds a <div> element
form
Added
Adds a <form> element
label
Added
Adds a <label> element
link
Added
Adds a <link> element
meta
Added
Adds a <meta> element
p
Added
Adds a <p> element
pre
Added
Adds a <pre> element
select
Added
Adds a <select> element
span
Added
Adds a <span> element
style
Added
Adds a <style> element
table
Added
Adds a <table> element
tbody
Added
Adds a <tbody> element
td
Added
Adds a <td> element
textarea
Added
Adds a <textarea> element
th
Added
Adds a <th> element
thead
Added
Adds a <thead> element
tr
Added
Adds a <tr> element
ul
Added
Adds a <ul> element
vr
Added
Adds a <vr> element
a
Added
Adds an <a> element
h1
Added
Adds an <h1> element
h2
Added
Adds an <h2> element
h3
Added
Adds an <h3> element
h4
Added
Adds an <h4> element
h5
Added
Adds an <h5> element
h6
Added
Adds an <h6> element
hr
Added
Adds an <hr> element
i
Added
Adds an <i> element
img
Added
Adds an <img> element
input
Added
Adds an <input> element
li
Added
Adds an <li> element
ol
Added
Adds an <ol> element
option
Added
Adds an <option> element
html
Added
Adds some html directly to the page
css
Added
Adds some styles to be applied to the page (adds a <style> element to the <head>
js
Added
Adds some javascript to be executed on the page (adds a <script> element to the <body>) It is not placed at the end of the body like the @script entity
script
Added
Adds a link to a javascript file to the bottom of the <body>
stylesheet
Added
Adds a link to a css file to the bottom of the <head>
hyperlink
Added
Adds an <a> element, with the href set to the link specified in the parameters.
title
Added
Sets the page title (adds a <title> element to the <head>
1.0.0
Version 1.0.0 is an unsupported version of the library.