add example of how to use with :require
resolves #1
[ci skip]