uce/site/doc/pages/component_resolve.txt

24 lines
740 B
Plaintext

:sig
String component_resolve(String name)
:see
>ob
component
component_exists
component_render
1_COMPONENT
:content
Resolves a component name to the concrete `.uce` file path that will be loaded.
Resolution tries the exact file name first, then the same name with `.uce` appended, and then the same two forms under the `components/` prefix.
If `name` contains a colon, only the file portion is used for resolution.
This is primarily a debugging helper so you can see which concrete file a shorthand component name maps to.
## Related Concepts
- PHP: resolving include paths or view names to a concrete template file before rendering
- JavaScript / Node.js: resolving module paths, alias-based imports, or component registry entries