You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is almost possible, but $project->partials is a Collection of strings, rather than a collection of Partial objects.
Expected Behavior
query="partials" should pass phpDocumentor\Partials\Partial objects as the node to the templates.
Actual Behavior
The query passes strings as the node. This then causes the dynamic artifact name of artifact="partials/{{name}}.html" to fail, as it attempts to find the string property of a string.
Steps to Reproduce the Problem
Add partial to configuration
Add transformation with query="partials" and dynamic artifact="partials/{{name}}.html"
This could be solved by moving the content generation step from Partials\ServiceProvider->register() into a new Partials\Partial->toString(), and storing the actual Partial objects in the collection.
The text was updated successfully, but these errors were encountered:
I'd like to be able to generate files for partials, allowing something like:
Combined with a template with:
This is almost possible, but
$project->partials
is a Collection of strings, rather than a collection of Partial objects.Expected Behavior
query="partials"
should passphpDocumentor\Partials\Partial
objects as the node to the templates.Actual Behavior
The query passes
string
s as the node. This then causes the dynamic artifact name ofartifact="partials/{{name}}.html"
to fail, as it attempts to find thestring
property of a string.Steps to Reproduce the Problem
query="partials"
and dynamicartifact="partials/{{name}}.html"
This could be solved by moving the content generation step from
Partials\ServiceProvider->register()
into a newPartials\Partial->toString()
, and storing the actual Partial objects in the collection.The text was updated successfully, but these errors were encountered: