complete general port to .Rmd and mustache