use rst with templated layout