KinoComponent (kino_component v0.2.2)

View Source

A kino for rendering a Phoenix function component.

Example

import Phoenix.Component, only: [link: 1, sigil_H: 2]

assigns = %{text: "I'm a link!"}

~H"""
<.link><%= @text %></.link>
"""
|> KinoComponent.new()

Summary

Functions

Creates a new kino displaying the given HEEx template.

Renders an HEEx template and returns the resulting HTML as a string.

Functions

new(heex)

Creates a new kino displaying the given HEEx template.

to_html(heex)

Renders an HEEx template and returns the resulting HTML as a string.