Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stylesheets tag #2579

Closed
nimasdj opened this issue Nov 3, 2017 · 5 comments
Closed

stylesheets tag #2579

nimasdj opened this issue Nov 3, 2017 · 5 comments

Comments

@nimasdj
Copy link

nimasdj commented Nov 3, 2017

Does standalone twig accepts stylesheets tag? Please advise for this? kriswallsmith/assetic#862

@nimasdj nimasdj changed the title Report an issue stylesheets tag Nov 3, 2017
@xabbuh
Copy link
Contributor

xabbuh commented Nov 3, 2017

Twig doesn't know anything about this node. It's provided by AsseticBundle: https://github.com/symfony/assetic-bundle/blob/master/Twig/AsseticExtension.php#L43

@nimasdj
Copy link
Author

nimasdj commented Nov 3, 2017

So I have to pass assetic factory to this class, instead of the one I did? or please give an example.

@SpacePossum
Copy link
Contributor

for questions/examples about symfony/assetic-bundle/ you best try over there I think:
https://symfony.com/community

@fabpot fabpot closed this as completed Nov 3, 2017
@nimasdj
Copy link
Author

nimasdj commented Nov 3, 2017

@xabbuh If you meant I have to pass assetic factory instance to assetic-bundle AsseticExtension, I did so but it requires a second argument Error 0: Argument 2 passed to Symfony\Bundle\AsseticBundle\Twig\AsseticExtension::__construct() must be an instance of Symfony\Component\Templating\TemplateNameParserInterface What should I do now?

@xabbuh
Copy link
Contributor

xabbuh commented Nov 3, 2017

@nimasdj I would have to dig into the code of AsseticBundle myself to help you with that. I suggest to do that yourself or to use the support channels as suggested by @SpacePossum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants