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

Sleet #278

Closed
ezequieltomazini opened this issue Sep 2, 2020 · 3 comments
Closed

Sleet #278

ezequieltomazini opened this issue Sep 2, 2020 · 3 comments
Labels

Comments

@ezequieltomazini
Copy link

Hello,
where do I find the view (sleet) documentation to find out which filters / functions?
Do they have the same features as VOlt / Twig?

@mruz
Copy link
Member

mruz commented Sep 2, 2020

Unfortunately they are not documented yet. They have similar features to volt/twig.

Functions:
View: content, partial, load,
General: dump, version,
Tag: text_field, password_field, hidden_field, submit_button, button, check_field, radio_field, input, form, end_form, text_area, image, img, link_to, a, link, script, style, select, tag_html, end_tag, friendly_title, get_doc_type, get_title, get_meta

Filters:
capitalize, camelize, uncamelize, human, lower, upper, alnum, alpha, email, float, int, string, strip_repeats, e, escape, strip_special, unescape, unstrip_special

https://github.com/ice/framework/blob/dev/ice/mvc/view/engine/sleet/parser.zep

PS.
You can also use all build in php functions as filters title|isset but functions with multiple parameters are not supported well.

@mruz mruz added the question label Sep 2, 2020
@ezequieltomazini
Copy link
Author

Thank you Mariusz.

Will Ice continue to be maintained and as an extension? I currently use phalcon in several projects, but it will be discontinued as an extension, so I intend to migrate to ICE.

@mruz
Copy link
Member

mruz commented Sep 2, 2020

Yes, no plan to drop it and I hope we will add support for php8 soon zephir-lang/zephir#2111.
I need to improve our documentation, for now you can check our api.

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

No branches or pull requests

2 participants