-
-
Save shankardevy/b9d6407707c18520bb9fdb48714bd3b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MangoWeb.LayoutView do | |
use MangoWeb, :view | |
import MangoWeb.CartView, only: [cart_count: 1] | |
def cart_link_text(conn) do | |
raw """ | |
<i class="fa fa-shopping-cart"></i> <span class="cart-count">#{cart_count(conn)}</span> | |
""" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment