File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33__pycache__ /
44
55test /* -fresh.html
6- test /csskrrt *
6+ test /csskrt *
Original file line number Diff line number Diff line change 11from bs4 import BeautifulSoup , Tag , NavigableString
2- from csskrrt import Csskrrt
2+ from csskrt import Csskrt
33
44
5- class BulmaCsskrrt ( Csskrrt ):
5+ class BulmaCsskrt ( Csskrt ):
66 def __init__ (self , fileName ):
77 tag_styles = {
88 'input' : 'input' ,
Original file line number Diff line number Diff line change 44from typing import List , Dict , NoReturn
55
66
7- class Csskrrt (ABC ):
7+ class Csskrt (ABC ):
88 def __init__ (self , filename : str , tag_styles : Dict ):
99 f = open (filename ) # should be able to handle dirs (for later) todo
1010 f_data = f .read ()
@@ -126,7 +126,7 @@ def output(self) -> NoReturn:
126126 file = os .path .basename (self .file_path )
127127 file_name , ext = os .path .splitext (file )
128128
129- new_file_name = os .path .join (folder , 'csskrrt_ ' + file_name + ext )
129+ new_file_name = os .path .join (folder , 'csskrt_ ' + file_name + ext )
130130 with open (new_file_name , 'w' ) as out_file :
131131 out_file .write (self .soup .prettify ())
132132
Original file line number Diff line number Diff line change 11import click
2- from bulmaCsskrrt import BulmaCsskrrt
2+ from bulmaCsskrt import BulmaCsskrt
33
44
55@click .command ()
66@click .argument ('filename' , type = click .Path (exists = True ))
77@click .option ('--framework' , default = 'bulma' , help = 'Name of the framework' )
88def freshify (filename , framework ):
9- csskrrter = None
9+ csskrter = None
1010
1111 if framework == 'bootstrap' :
1212 raise NotImplementedError
1313 elif framework == 'bulma' :
14- csskrrter = BulmaCsskrrt (filename )
14+ csskrter = BulmaCsskrt (filename )
1515
16- csskrrter .freshify ()
16+ csskrter .freshify ()
1717
1818
1919if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments