defmodule CometApp.HomePage do use Hologram.Page route "/" layout CometApp.MainLayout, page_title: "Home" # def init(_params, component, _server) do # # In real app, fetch from database # posts = [ # %{id: 1, title: "First Post", excerpt: "This is my first post"}, # %{id: 2, title: "Second Post", excerpt: nil} # ] # put_state(component, :posts, posts) # end def template do ~HOLO"""
Powered by the AT Protocol, we're putting the power back in the hands of musicians.
""" end end