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

Using a !not directive #18

Closed
raymondkingston opened this issue Jun 21, 2019 · 1 comment
Closed

Using a !not directive #18

raymondkingston opened this issue Jun 21, 2019 · 1 comment
Assignees

Comments

@raymondkingston
Copy link

raymondkingston commented Jun 21, 2019

@if (have_posts()) becomes @posts
Love it.

Roots Sage's 404 uses @if ( ! have_posts())
Is there a ! not directive equivalent ?

[btw, great job with this project. thanks.]

@Log1x
Copy link
Owner

Log1x commented Jul 9, 2019

Having a hard time thinking on how to sanely implement that at the moment although I've thought about it in the past.

In cases where I've actually needed conditionals on my queries, I've always handled them myself within a Controller.

@Log1x Log1x added the todo This feature or request is on the todo list. label Jul 9, 2019
@Log1x Log1x self-assigned this Jul 9, 2019
Log1x added a commit that referenced this issue Aug 25, 2019
* Added `@hasposts` and `@endhasposts` directives.
* Added `@noposts` and `@endnoposts` directives. (#18)
@Log1x Log1x closed this as completed Aug 25, 2019
@Log1x Log1x removed the todo This feature or request is on the todo list. label Aug 25, 2019
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