Tests and docs for #752

#752 by @niallsmart is about an option of specifying path and line when rendering with Proc or String.
This pull request contains the commit with tests and documentation.