-
Notifications
You must be signed in to change notification settings - Fork 14
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
Documention: Relative Twig Paths #576
Comments
After some investigation, it seems relative paths don't really work in general. Updated the namespace usage, and I'll push out a KSTAT update with it. Use |
So namespaces are working for both kstat and KSS at the same time???
…On July 4, 2018 9:54:58 AM EDT, Rob Loach ***@***.***> wrote:
After some investigation, it seems relative paths don't really work in
general. Updated the namespace usage, and I'll push out a KSTAT update
with it.
Use ***@***.***` or the other namespaces. We should add some more docs
about it too.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#576 (comment)
--
written on a tiny but powerful pocketfuture.
|
Quite possibly! May need to update Twig in KSS too. |
Quite possibly ? Or actually?
…On July 4, 2018 4:38:00 PM EDT, Rob Loach ***@***.***> wrote:
Quite possibly! May need to update Twig in KSS too.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#576 (comment)
--
written on a tiny but powerful pocketfuture.
|
The namespaces are declared across both KSTAT and KSS, but you'll have to....
You'll see an example in https://github.com/kalamuna/kalastatic/blob/master/docs/4-Prototyping.md#namespaces |
nice 👍 |
I'm having namespace problems as well. I have upgraded to kalastatic 4.1.0-alpha.1 but I get errors like this when building:
This worked until very recently. Is it because I can't include SVGs inline with recent kalastatic updates? I used to print out SVGs inline like this:
Is there anything that can be done to include these SVGs inline as I used to? If I rename the file to
|
Correction... You're on the latest.. Thanks. What's in your kalastatic.yml? |
Do you mean 4.0.0-alpha3? I just tried that, I'm getting the same errors. I do not see 4.1.0-alpha.3 on Github or via NPM. |
Yes, apologies, read 4.0.0 instead of 4.1.0 👍 .... Thanks.
|
No, I didn't change the defaults although I did try to fix them via the kalastatic.yml settings. It kept dying with an error on me, although I think I did stumble upon the proper settings. At least it's working for me now! I swear I tried this before posting here, but I guess it's just been one of those days. These are the settings that got it working for me:
And:
This seems to have fixed the issue. I still have some adjustments to make with the Kalastatic update but I think I can take it from here. Thanks for your help! |
I've only ever been able to include svgs by changing the file name to have a If you include it with NPM you can even set up a custom name space ( |
That's interesting, @soniktrooth... With the above namespace updates I'm able to include SVGs inline with the .svg extension. |
@timwasson that's great if it works. You're still getting errors though? |
No, adjusting the namespaces as above seems to have fixed the errors. The kalastatic update did cause me to have to do a few other updates, but no errors at this point. |
ok cool. I'll have to update and see if I can include svgs on their own. |
Strange that Twig wouldn't allow .svg includes. @timwasson Have you found an issue in the twig queue about that? |
That's a question for @soniktrooth, I've never had a problem including SVGs. |
Does using |
We've known about KSS not supporting namespaces,
But since the latest version of jstransformers-twig it seems like ow the prototype doesn't support relative paths, which puts us in a bit of a binnd.
The text was updated successfully, but these errors were encountered: