|  |  |  | @ -21,9 +21,12 @@ def list_headlines(articles): | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | def retrieve_article(page): | 
		
	
		
			
				|  |  |  |  |     text = [] | 
		
	
		
			
				|  |  |  |  |     with open(loc + page) as f: | 
		
	
		
			
				|  |  |  |  |             text = f.readlines() | 
		
	
		
			
				|  |  |  |  |     return text | 
		
	
		
			
				|  |  |  |  |     string = "" | 
		
	
		
			
				|  |  |  |  |     with open(loc + str(page)) as f: | 
		
	
		
			
				|  |  |  |  |         text = f.readlines() | 
		
	
		
			
				|  |  |  |  |     for line in text: | 
		
	
		
			
				|  |  |  |  |         string += line | 
		
	
		
			
				|  |  |  |  |     return string | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | def list_snippets(articles): | 
		
	
		
			
				|  |  |  |  |     limit = 4 | 
		
	
	
		
			
				
					|  |  |  | @ -136,14 +139,12 @@ def diary(page): | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | @route('/diary/entries/<page:int>') | 
		
	
		
			
				|  |  |  |  | def entry(page): | 
		
	
		
			
				|  |  |  |  |     info = {'css': 'box', 'title': 'blessfrey - credits', 'year': datetime.datetime.now()} | 
		
	
		
			
				|  |  |  |  |     """diary entry""" | 
		
	
		
			
				|  |  |  |  |     info = {'css': 'diary', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'entry': retrieve_article(page), 'latest': list_headlines(sort_files(gather_files())[0:5]), 'page': page} | 
		
	
		
			
				|  |  |  |  |     abs_app_dir_path = os.path.dirname(os.path.realpath(__file__)) | 
		
	
		
			
				|  |  |  |  |     abs_views_path = os.path.join(abs_app_dir_path, 'views') | 
		
	
		
			
				|  |  |  |  |     TEMPLATE_PATH.insert(0, abs_views_path ) | 
		
	
		
			
				|  |  |  |  |     return template(os.path.join(abs_views_path,'contact.tpl'), info) | 
		
	
		
			
				|  |  |  |  | #    """diary entry""" | 
		
	
		
			
				|  |  |  |  | #    info = {'css': 'diary', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'entry': retrieve_article(page), 'latest': list_headlines(sort_files(gather_files())[0:5]), 'page': page} | 
		
	
		
			
				|  |  |  |  | #    return template('feature.tpl', info) | 
		
	
		
			
				|  |  |  |  |     return template(os.path.join(abs_views_path,'feature.tpl'), info) | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | @route('/box') | 
		
	
		
			
				|  |  |  |  | def box(): | 
		
	
	
		
			
				
					|  |  |  | 
 |