elixir-editors / elixir-editors/elixir-tmbundle

Support for inline LiveView templates

Open
#184 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
262
Forks
64
PR merge metrics
No merged PRs in 30d

Description

What is the right place to add support for inline templates?

Here is an example:

```elixir
defmodule AppWeb.ThermostatLive do
use Phoenix.LiveView

def render(assigns) do
~L"""


Current temperature: <%= @temperature %>

"""
end

def mount(_params, %{"current_user_id" => user_id}, socket) do
temperature = Thermostat.get_user_reading(user_id)
{:ok, assign(socket, :temperature, temperature)}
end
end
```

Ideally I would like the part inside the sigil to be highlighted as eex html template.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.