Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
61fc192c
Commit
61fc192c
authored
Oct 08, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced libsass with pyScss (1.4.0)
parent
0403b99f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
uitwww/main.py
uitwww/main.py
+6
-5
No files found.
uitwww/main.py
View file @
61fc192c
...
...
@@ -16,10 +16,11 @@
import
os
import
sass
import
click
import
uitwww
from
uitwww
import
utils
from
scss.compiler
import
compile_file
@
click
.
group
()
...
...
@@ -89,7 +90,7 @@ def init(data):
def
build_scss
():
"""Compile the scss file"""
print
(
"Compile the scss file"
)
base_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
".."
)
path
=
f"
{
base_dir
}
/assets/scss/www.scss"
with
open
(
f"
{
base_dir
}
/uitwww/static/website.css"
,
"w"
)
as
fn
:
fn
.
write
(
sass
.
compile
(
filename
=
path
))
BASE_DIR
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
".."
)
path
=
f"
{
BASE_DIR
}
/assets/scss/www.scss"
with
open
(
f"
{
BASE_DIR
}
/uitwww/static/website.css"
,
"w"
)
as
fn
:
fn
.
write
(
compile_file
(
path
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment