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

Ifset macro tests block existence #187

Closed
wants to merge 1 commit into from
Closed

Conversation

redhead
Copy link
Contributor

@redhead redhead commented Feb 6, 2011

Na fóru to byl docela žádaný feature request.
http://forum.nette.org/cs/6571-kontrola-zda-li-byl-v-sablone-definovam-blok

Ifset kontroluje existenci bloku:

{ifset #block, $promenna}
...
{/ifset}

Zkoušel jsem napsat i test, ale nedaří se mi assert, a to ani když pouze přidám písmeno na konec souborů. Ve složce output/ je actual a expected naprosto totožný, ale assert neprojde. Nechtělo se mi tím zabývat.

@dg
Copy link
Member

dg commented Feb 6, 2011

Test jsem doplnil a je to tam.

@whipsterCZ
Copy link

Díky! Tomu říkám podpora uživatelů ;)

This pull request was closed.
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

Successfully merging this pull request may close these issues.

None yet

3 participants