# \#phoenix-html-template

**URL:** https://forum.elixirforum.com/tag/phoenix-html-template/1939.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Display select input element with dark theme (phoenix 1.8 with DaisyUI)](https://forum.elixirforum.com/t/display-select-input-element-with-dark-theme-phoenix-1-8-with-daisyui/73162)

<div class="topic-metadata">

**Author:** [@Valeriy](https://forum.elixirforum.com/u/Valeriy)\
**Replies:** 2\
**Last updated:** [November 7, 2025, 8:48am UTC](https://forum.elixirforum.com/t/display-select-input-element-with-dark-theme-phoenix-1-8-with-daisyui/73162 "2025-11-07T08:48:38Z")

</div>

Hello. I use Phoenix 1.8 with LiveView 1.1.16, phoenix\_html 4.3.0 and daisyUI 5.0.35. I use the usual light and dark themes for daisyUI and i have some strange behavior of input (select) element with dark theme (differ…

---

## [New manual template rendering in phx 1.7](https://forum.elixirforum.com/t/new-manual-template-rendering-in-phx-1-7/57502)

<div class="topic-metadata">

**Author:** [@redpoll](https://forum.elixirforum.com/u/redpoll)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 7:22am UTC](https://forum.elixirforum.com/t/new-manual-template-rendering-in-phx-1-7/57502 "2023-08-08T07:22:17Z")

</div>

Hi, phoenix version used: 1.7.7. Before, in 1.6 I used to manually render template (let’s say from index.html.heex in heex with render/2 \<%= render("test.html", assigns) %\> assuming that test.html.heex in is the same d…

---

## [How to get html.heex files working with the VSCode Tailwind CSS IntelliSense extension?](https://forum.elixirforum.com/t/how-to-get-html-heex-files-working-with-the-vscode-tailwind-css-intellisense-extension/42371)

<div class="topic-metadata">

**Author:** [@malloryerik](https://forum.elixirforum.com/u/malloryerik)\
**Replies:** 4\
**Last updated:** [June 29, 2023, 11:29am UTC](https://forum.elixirforum.com/t/how-to-get-html-heex-files-working-with-the-vscode-tailwind-css-intellisense-extension/42371 "2023-06-29T11:29:32Z")

</div>

I haven’t been able to get the VSCode Tailwind IntelliSense extension to work with html.heex files. The plugin works with a plain .html file in the same project, and works perfectly on Phoenix 1.5 apps. I looked for a …

---

## [Rendering HTML with functions or a DSL instead of templates](https://forum.elixirforum.com/t/rendering-html-with-functions-or-a-dsl-instead-of-templates/56127)

<div class="topic-metadata">

**Author:** [@Benjamin-Philip](https://forum.elixirforum.com/u/Benjamin-Philip)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 1:37pm UTC](https://forum.elixirforum.com/t/rendering-html-with-functions-or-a-dsl-instead-of-templates/56127 "2023-05-26T13:37:58Z")

</div>

I’ve noticed that in other languages, there is a practice of rendering HTML with functions (as in Elm) or with a DSL (as in the case of Crystal in the Lucky framework). This approach has a number of advantages over templ…

---

## [Need help with datetime\_select form builder](https://forum.elixirforum.com/t/need-help-with-datetime-select-form-builder/52636)

<div class="topic-metadata">

**Author:** [@MatijaL](https://forum.elixirforum.com/u/MatijaL)\
**Replies:** 0\
**Last updated:** [December 19, 2022, 3:41pm UTC](https://forum.elixirforum.com/t/need-help-with-datetime-select-form-builder/52636 "2022-12-19T15:41:06Z")

</div>

Hi, I’m trying to create a datetime select form and in the minutes fields I don’t want to show every minute (00..59), instead, I would like to show only 00, 15, 30 and 45 minutes. Do you have any idea how can I do that?…

---

## [How to read nested array in Phoenix HTML Template](https://forum.elixirforum.com/t/how-to-read-nested-array-in-phoenix-html-template/48995)

<div class="topic-metadata">

**Author:** [@docjazither](https://forum.elixirforum.com/u/docjazither)\
**Replies:** 1\
**Last updated:** [July 18, 2022, 1:49am UTC](https://forum.elixirforum.com/t/how-to-read-nested-array-in-phoenix-html-template/48995 "2022-07-18T01:49:26Z")

</div>

Good day, OGs I have an @object returns as follow: \[\[key: "email@email.com", value: 303071\]\] How can I extract the key out of it inside HTML template ? Thank you

---

## [Using variables from for loop into tags](https://forum.elixirforum.com/t/using-variables-from-for-loop-into-tags/45316)

<div class="topic-metadata">

**Author:** [@fabioticconi](https://forum.elixirforum.com/u/fabioticconi)\
**Replies:** 2\
**Last updated:** [January 17, 2022, 10:31pm UTC](https://forum.elixirforum.com/t/using-variables-from-for-loop-into-tags/45316 "2022-01-17T22:31:30Z")

</div>

Hi, I’d like to do something like this linreg/lib/linreg\_web/live/regression\_live.html.leex at master · Tmw/linreg · GitHub but its syntax is deprecated in the latest Phoenix. This: \<svg width="800" height="800"\> \<…

---

## [How to get CRUD action within a template](https://forum.elixirforum.com/t/how-to-get-crud-action-within-a-template/42245)

<div class="topic-metadata">

**Author:** [@eksperimental](https://forum.elixirforum.com/u/eksperimental)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 5:55am UTC](https://forum.elixirforum.com/t/how-to-get-crud-action-within-a-template/42245 "2021-09-15T05:55:45Z")

</div>

Quick question. Is there a way to find out what is the CRUD action within a template in Phoenix? Thank you

---

## [Why does Phoenix 1.6 use html.heex as the suffix of the template file?](https://forum.elixirforum.com/t/why-does-phoenix-1-6-use-html-heex-as-the-suffix-of-the-template-file/42013)

<div class="topic-metadata">

**Author:** [@Hentioe](https://forum.elixirforum.com/u/Hentioe)\
**Replies:** 7\
**Last updated:** [August 31, 2021, 7:22am UTC](https://forum.elixirforum.com/t/why-does-phoenix-1-6-use-html-heex-as-the-suffix-of-the-template-file/42013 "2021-08-31T07:22:48Z")

</div>

Because EEx is a universal template language, html.eex is used to indicate that this template is html content. Did I understand it correctly? If so, I can’t understand why heex also uses this naming style. After all, he…

---

## [Regex within a template inline tag](https://forum.elixirforum.com/t/regex-within-a-template-inline-tag/41494)

<div class="topic-metadata">

**Author:** [@calypso](https://forum.elixirforum.com/u/calypso)\
**Replies:** 3\
**Last updated:** [August 6, 2021, 7:38pm UTC](https://forum.elixirforum.com/t/regex-within-a-template-inline-tag/41494 "2021-08-06T19:38:36Z")

</div>

Hello everyone I would like to run my react app, which is built with webpack. Everything works fine. But in the app.html.eex, I need to hardcode to css filename, which contains the contenthash generated by webpack. Thi…

---

## [Any way to use phx-hook in a eex template?](https://forum.elixirforum.com/t/any-way-to-use-phx-hook-in-a-eex-template/34988)

<div class="topic-metadata">

**Author:** [@benonymus](https://forum.elixirforum.com/u/benonymus)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 8:34pm UTC](https://forum.elixirforum.com/t/any-way-to-use-phx-hook-in-a-eex-template/34988 "2020-10-16T20:34:44Z")

</div>

Hey there, I am trying to render a pdf with a chart in it with an eex template, but I am only getting an empty canvas. \<html\>\<h1\>from template \<%= @total\_zones %\>\</h1\> \<%= if @chart\_config do %\> \<div phx-hook="ChartJS…

---

## [Adding a Bit of Javascript to Phoenix Template](https://forum.elixirforum.com/t/adding-a-bit-of-javascript-to-phoenix-template/31647)

<div class="topic-metadata">

**Author:** [@tnederlof](https://forum.elixirforum.com/u/tnederlof)\
**Replies:** 9\
**Last updated:** [May 19, 2020, 10:27pm UTC](https://forum.elixirforum.com/t/adding-a-bit-of-javascript-to-phoenix-template/31647 "2020-05-19T22:27:31Z")

</div>

I have had some good success with using pure Phoenix template/html so far however I have a layout that uses a dropdown menu and I need to use a bit of javascript to accomplish some of the click, show, hide, etc events. M…

---

## [How do i dynamically theme Phoenix views](https://forum.elixirforum.com/t/how-do-i-dynamically-theme-phoenix-views/27745)

<div class="topic-metadata">

**Author:** [@kbee](https://forum.elixirforum.com/u/kbee)\
**Replies:** 4\
**Last updated:** [December 22, 2019, 5:10pm UTC](https://forum.elixirforum.com/t/how-do-i-dynamically-theme-phoenix-views/27745 "2019-12-22T17:10:42Z")

</div>

Hello community, I’m new to phoenix and struggling to implement a feature that would allow my users to apply a theme of their choice (e.g. animals, cars, nature). Each of these themes has its own assets and I’m using p…

---

## [Value change in html template from 1200 to 1.2e3](https://forum.elixirforum.com/t/value-change-in-html-template-from-1200-to-1-2e3/26256)

<div class="topic-metadata">

**Author:** [@ashok](https://forum.elixirforum.com/u/ashok)\
**Replies:** 6\
**Last updated:** [October 22, 2019, 3:42pm UTC](https://forum.elixirforum.com/t/value-change-in-html-template-from-1200-to-1-2e3/26256 "2019-10-22T15:42:42Z")

</div>

I am fetching “card\_income” value from the database (Postgres SQL) has its value as 1200.0 but in the phoenix view template it is showing the value as 1.2e3. What can be the reason? One interesting thing is if I update t…
