defmodule CvGenView do
use Phoenix.Component
@after_compile __MODULE__
embed_templates("templates/*")
attr(:date, :any)
attr(:rest, :global)
def date(assigns) do
~H"""
"""
end
attr(:work, :map)
def work(assigns) do
~H"""
"""
end
attr(:lang, :map)
def language(assigns) do
~H"""
<%= @lang.language %> (<%= @lang.fluency %>)
"""
end
def __after_compile__(_env, _bytecode) do
CvGen.generate()
end
end