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

Twig_Loader_String #11

Open
misterx opened this issue Sep 22, 2010 · 2 comments
Open

Twig_Loader_String #11

misterx opened this issue Sep 22, 2010 · 2 comments

Comments

@misterx
Copy link

misterx commented Sep 22, 2010

We have error when use another Loader for twig, when try parse string
Text text
In result we have:
Text <img src="http://example.com/image
Cose Kohana_Twig class find extension in the first param in the factory. FIx this:
Remove code:
if ($extension = pathinfo($file, PATHINFO_EXTENSION))
{
$this->set_extension($extension);
}
From function Kohana_Twig::set_filename . I don't know why we must use this code(search extension in input data), cose this is loader functional, and extension declared in config file.

@jonathangeiger
Copy link
Owner

I'm not really sure what you're talking about here.

@misterx
Copy link
Author

misterx commented Oct 15, 2010

Please change loader to Twig_Loader_String, and try to parese text

Text <img src="http://example.com/image.jpg"> text

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

No branches or pull requests

2 participants