Miloslav Hůla

Results 108 comments of Miloslav Hůla

@dg What about somehow extend the ifContent macro? To be able hide parents/siblings?

What about the opposite meaning? ```latte {renderIf $block->images()->count()} {$block->headline} ... ```

Btw. I'll refactor Tester to match() & matchRe() or similar.

No. Only split pattern matching and regexp matching to be API more clear.

@dg Rebased @Majkl578 I don't use doctrine collections, but when I take a look at [source](https://github.com/doctrine/collections/blob/1a4fb7e902202c33cce8c55989b945612943c2ba/lib/Doctrine/Common/Collections/ArrayCollection.php)... My collections used to look very similarly. Problem arises when you want to be...

@JanTvrdik Partially agree. The best would be native typed arrays in the PHP itself. Collection is a typical part of a model layer, Nette does not have such. This is...

Since its WIP, rebased to some old commit.

@dg Do you think it is a good idea to have it in the Utils? I'm using it literally everywhere and for comfort, I want to have it in a...

`milo/collection` already exists few years :) But as a private repo. Reason to propose for Nette is, that I consider it extremly useful.

> For example, the `rm -fr temp/cache/*` command will always delete the contents safely and not cause an error to be thrown, like Nette. That's because of `-f` option. It...