<s> """<STR_LIT>""" <EOL> def reverse_words ( s ) : <EOL> '''<STR_LIT>''' <EOL> s = '<STR_LIT:U+0020>' . join ( reversed ( s . split ( '<STR_LIT:U+0020>' ) ) ) <EOL> return s <EOL> from scrypture import webapi <EOL> class WebAPI ( webapi . WebAPI ) : <EOL> input_text = webapi . text_input ( '<STR_LIT>' ) <EOL> submit_button = webapi . submit_button ( '<STR_LIT>' ) <EOL> def run ( self , form_input ) : <EOL> input_text = form_input [ '<STR_LIT>' ] <EOL> output = reverse_words ( input_text ) <EOL> return { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : output } </s>
