# `PhoenixVapor.Sigil`
[🔗](https://github.com/elixir-volt/phoenix_vapor/blob/v0.6.1/lib/phoenix_vapor/sigil.ex#L1)

Provides the `~VUE` sigil for embedding Vue templates in LiveView components.

The Vue template is compiled to a statics/slots split at compile time via
`Vize.split_template!/1`. At runtime, slots are evaluated against assigns to
produce a `%Phoenix.LiveView.Rendered{}` struct with per-assign change tracking.

## Usage

    import PhoenixVapor.Sigil

    def render(assigns) do
      ~VUE"""
      <div :class="status">
        <h1>{{ title }}</h1>
        <ul>
          <li v-for="item in items" :key="item.id">{{ item.name }}</li>
        </ul>
        <p v-if="showFooter">{{ footerText }}</p>
      </div>
      """
    end

The template has access to all keys in `assigns`. Nested access like
`user.name` resolves via map key lookup.

# `sigil_VUE`
*macro* 

Compile a Vue template to a LiveView `%Rendered{}` struct.

The template is compiled at compile time. The resulting IR is embedded
in the module's bytecode and evaluated against `assigns` at runtime.

Requires `assigns` to be in scope (same as `~H`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
