Support hostname directive in layouts

Simple additional directive that adds support for hostname.