Make inline_resource more standard and extensible