Generates a custom content type module scaffold.
Usage
mix sayfa.gen.content_type ModuleNameExamples
mix sayfa.gen.content_type Recipe
mix sayfa.gen.content_type MyApp.ContentTypes.TutorialThe last segment of the module name is used to derive the type name and file name.
For example, Recipe produces lib/content_types/recipe.ex with type name :recipe.
After generation
Register your content type and create its content directory:
# In config/config.exs:
config :sayfa, :content_types, [MyApp.ContentTypes.Recipe | Sayfa.ContentType.default_types()]
# Create the content directory:
mkdir -p content/recipes