View Source PhoenixImportmap.Asset (Phoenix Importmap v0.1.0)

Internal functions for working with asset paths.

Summary

Functions

Determine the copy destination path for a given source path.

Copy an asset from its source_path to its dest_path.

Determine the public path for a given source path. This is what will appear in the output of PhoenixImportmap.importmap().

Functions

dest_path(source_path)

Determine the copy destination path for a given source path.

maybe_copy(source_path, dest_path)

Copy an asset from its source_path to its dest_path.

public_path(source_path)

Determine the public path for a given source path. This is what will appear in the output of PhoenixImportmap.importmap().