-
Notifications
You must be signed in to change notification settings - Fork 297
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
Get path & get URL #292
Comments
+1 for static resource / asset management! This will first require the plugin system to be merged and stabilized; as it's also related to rewriting the page templates, this may be discussed in #266 as well |
I don't think that plugin system is a requirement for this features. This On Tue, 21 Jul 2015 18:34 VirtualTam [email protected] wrote:
|
What I meant is rather: we first need to finish work on the plugin system, then we'll have time to carry on new tasks ;-) Yet, as it is quite uncorrelated (code-wise), a first PR with a class / set of functions to handle static assets would be very welcome :) |
ok :) |
Note that most path displayed in your example are actually defined in templates (see First thing that can be done is using everywhere the Is +1 for having a clean |
@ArthurHoaro first of all I wanna say WOW!! Awesome work in #275 thanks! About getPath: Right now nobody is using the path.. but I saw a proposition for file upload. Maybe someday a lot of plugins will need this method, I think that About getURL: When I write php for Laravel application the method |
I'll write a I won't write a
|
I never speak about show the absolute path to public. The absolute path is for internal usage. |
I'm pushing the milestone since processing core code with Slim might open new perspectives regarding path and URIs. |
Update on this with v0.12.0: there are no function yet, however all sort of prefixes are available across templates depending of what link should be available:
I think it covers the use cases mentioned in the issue. We could add functions to cover these cases, but I think we shouldn't for two reasons linked to how RainTPL works:
I suggest that we close this issue. |
I know... Shaarli is not a framework like Laravel, is just a Delicious clone but the community is adding a plugin system.. and a lot of improvements.. and now we got a lot of unclean URLs in the home page..
So this is a open ticket for everyone who can do it. One function, or method for the server path and one secure functions who returns the path to public resources. ie:
I think this will be very useful or plugin system and for every shaarli resources
The text was updated successfully, but these errors were encountered: