replacing compile method with render
updating examples to latest codebase