add curl examples + base template logic and some formatting