MishkaChelekom.Generators.ImportMacro (Mishka Chelekom v0.0.9-beta.3)

Copy Markdown View Source

Generates the <App>Web.Components.MishkaComponents import macro for the styled batch task (mix mishka.ui.gen.components --import) and, with --global, wires it into the web module's html_helpers/0 in place of the default CoreComponents import.

Summary

Functions

Creates the import-macro module for list of components when opts[:import] is set and the igniter is issue-free. opts: :import, :helpers, :global, :component_prefix, :module_prefix.

Functions

create(igniter, list, opts)

@spec create(Igniter.t(), [String.t()], keyword()) :: Igniter.t()

Creates the import-macro module for list of components when opts[:import] is set and the igniter is issue-free. opts: :import, :helpers, :global, :component_prefix, :module_prefix.