LoginSignup
3
2

More than 5 years have passed since last update.

Phoenixのlinkタグ

Posted at

Railsで記述可能なことは、Phoenixでも可能だと信じて、やはり可能だった件。
linkタグの文字に、スタイルを適用したいという場合の対応。

    <%= link "リンク", to: page_path(@conn, :index), class: "logo" %>
    <%= link to: page_path(@conn, :index), class: "logo" do %>
      <span class="logo"><b>リンク</b></span>
    <% end %>

do - end で囲む。
参考になれば。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2