exfile v0.1.2 Exfile.Phoenix.Helpers
View helpers to use Exfile in your Phoenix app.
To use these helpers, import it in the view
section of your web/web.ex
file.
defmodule MyApp.Web do
def view do
quote do
use Phoenix.View, root: "web/templates"
...
import Exfile.Phoenix.Helpers
end
end
end
Summary
Functions
Returns the absolute path of a file with the options passed
Returns the absolute URL of a file with the options passed