file2Block
This commit is contained in:
		@@ -5,7 +5,9 @@ import qualified Data.Text.IO as TIO
 | 
			
		||||
import qualified Data.Text as T
 | 
			
		||||
 | 
			
		||||
file2Block :: FilePath -> IO [Block]
 | 
			
		||||
 | 
			
		||||
file2Block f = do
 | 
			
		||||
  contents <- TIO.readFile f
 | 
			
		||||
  return [Plain [Str contents]]
 | 
			
		||||
 | 
			
		||||
doInclude :: Block -> IO Block
 | 
			
		||||
doInclude cb@(Div (id, classes, namevals) contents) =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user