<s> from wharf import app <EOL> from flask import render_template <EOL> @ app . route ( '<STR_LIT>' ) <EOL> def edit ( service ) : <EOL> about = "<STR_LIT>" <EOL> body = "<STR_LIT>" <EOL> link = "<STR_LIT>" <EOL> link_name = "<STR_LIT>" <EOL> about_path = "<STR_LIT>" + service + "<STR_LIT:/>" + app . config [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> with open ( about_path , '<STR_LIT:r>' ) as content_file : <EOL> about = content_file . read ( ) <EOL> body_path = "<STR_LIT>" + service + "<STR_LIT:/>" + app . config [ '<STR_LIT>' ] [ '<STR_LIT:body>' ] <EOL> with open ( body_path , '<STR_LIT:r>' ) as content_file : <EOL> body = content_file . read ( ) <EOL> link_path = "<STR_LIT>" + service + "<STR_LIT:/>" + app . config [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> with open ( link_path , '<STR_LIT:r>' ) as content_file : <EOL> link = content_file . read ( ) <EOL> link_a = link . split ( "<STR_LIT:U+0020>" , <NUM_LIT:1> ) <EOL> link = link_a [ <NUM_LIT:0> ] <EOL> link_name = link_a [ <NUM_LIT:1> ] <EOL> return render_template ( "<STR_LIT>" , service = service , about = about , body = body , link = link , link_name = link_name ) </s>
