Information Classification: External Restricted.
See https://www.chili-publish.com/security
HTML - ePub output
HTML - ePub export
The HTML / ePub export functionality will export a structured HTML file (or ePub) of your document.
If the document contains multiple alternate layouts, it is possible to specify which alternate layout of your document should be exported to HTML.
Our intent is to export the structure and the content of a document to HTML.
The layout of the document is not represented in the exported HTML file.
This way, developers will have the possibility to repurpose the exported HTML to what is defined by the project requirements.
These project requirements could be:
- Different purposes (or a combination of them) for your final HTML (landing pages vs mailings,...)
- Different devices (PC, tablet, phone)
- Different browsers or clients (Internet Explorer (IE), Firefox, Chrome, safari, Opera, ..)
- Browser versions support (IE8, IE9,..)
- Different resolutions
- Responsive design vs non-responsive design
- Project and customer related requirements
- Different HTML frameworks (Twitter bootstrap, Zurb foundation,..)
- ...
As all these different requirements will have an impact on how the final HTML (and CSS) will look like, we will leave these design decisions in your hands.
You could create an HTML template for a landing page and a template for your e-mail and inject the content of the exported HTML in both.
Or you could inject an own CSS file into the exported HTML to take care of the styling.
The HTML export will export following information:
- Frame tag
- Private frame data
- Character Style ID
- Paragraph Style ID
- Layer as attribute or as div
- Variables rendered or as placeholder
Attributes are added on different levels in the html output file.
On frame level
- Tag values are saved to the “data-tag” attribute.
- Layer values are saved to the “data-layer-name” attribute. The id of the layer, which can be used in API calls, is stored into the “data-layer-id” attribute.
<div data-node="0534B85B-FD1D-BA3F-397E-DC55EA982CBE" data-type="image" data-tag="header" data-layer-id="B231354E-01B7-730C-0921-DC559EE28F76" data-layer-name="New Layer" id="div-1"> <img src="images/Header_emailing.jpg" alt="New Frame" data-img-id="0d989364-a549-44ab-a414-02446555082a" width="443" height="257" /> </div>
On paragraph level
In text frames you can apply paragraph styles to text. On the paragraph tag (<p>) an attribute is added with the id of this style. This can be used in API calls.
The paragraph style name can still be found in the class definition.
<p id="para-8" data-paragraph-style-id="6BA37D37-88B4-36C4-06D0-DC8B2C218634" class="Centered para-style-override-1"> <span>........</span> </p>
On span level
In text frames you can apply character styles to text. On the span tag (<span>) an attribute is added with the id of this style. This can be used in API calls.
The character style name can still be found in the class definition.
<span data-character-style-id="9BEA6424-4FE5-9931-A919-DC8A76EB9CA2" class="greenish char-style-override-1"> I wish you a good game and the chance to be with you! </span>
Export Private data
When the “Export private data” option is checked, the private data will be added as attributes to the div.
<div data-node="0534B85B-FD1D-BA3F-397E-DC55EA982CBE" data-type="image" data-tag="header" data-customKey="customValue" id="div-1"> <img src="images/Header_emailing.png" alt="New Frame" data-img-id="0d989364-a549-44ab-a414-02446555082a" width="443" height="257" /> </div>
To be html5 compliant, it’s advised to use a “data-“ prefix for the private data keys.
Export layers as div
When the “Export layers as divs” option is checked, an extra layer will be added for the layers. Those layers contain their child divs.
The child divs will not contain the layer information anymore.
<div class="chiliBodyWrapper"> <div class="chiliLayer" data-layer-id="B231354E-01B7-730C-0921-DC559EE28F76" data-layer-name="New Layer"> ...child divs... </div> </div>
All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security