ElementorexCms (ElementorexCms v0.1.0)

Copy Markdown View Source

A visual, drag & drop content builder for Phoenix LiveView.

The pieces:

See the README for the installation steps and mix elementorex.install to check them.

Summary

Functions

Renders a document to an HTML string (with its <style>). Shortcut for ElementorexCms.Renderer.to_html/2.

Plain text of a document (for excerpts and search). Text of headings, paragraphs, buttons and list items, in order.

Version of the library.

Functions

to_html(document, opts \\ [])

@spec to_html(map(), keyword()) :: String.t()

Renders a document to an HTML string (with its <style>). Shortcut for ElementorexCms.Renderer.to_html/2.

to_text(document)

@spec to_text(map()) :: String.t()

Plain text of a document (for excerpts and search). Text of headings, paragraphs, buttons and list items, in order.

version()

@spec version() :: String.t()

Version of the library.