Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove libsass #111

Merged
merged 3 commits into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Deprecated
### Removed
- libsass support: https://sass-lang.com/blog/libsass-is-deprecated [111](https://github.com/greenbone/pheme/pull/111)
### Fixed

[Unreleased]: https://github.com/greenbone/pheme/compare/v0.0.1a3...HEAD
Expand Down
2 changes: 0 additions & 2 deletions pheme/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

logger = logging.getLogger(__name__)

mimetypes.add_type('text/scss', '.scss')


def load_params(from_path: str = settings.PARAMETER_FILE_ADDRESS) -> Dict:
param_file_obj = Path(from_path)
Expand Down
1 change: 0 additions & 1 deletion pheme/scripts/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def main():
if len(sys.argv) != 2:
sys.stderr.write("need exactly one one path parameter. Aborting.")
sys.exit(1)
mimetypes.add_type('text/scss', '.scss')
data = {}
paths = sys.argv[1:]
for i in paths:
Expand Down
3 changes: 0 additions & 3 deletions pheme/transformation/scanreport/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from rest_framework import renderers
from rest_framework.request import Request
from weasyprint import CSS, HTML
import sass
from pheme.settings import DEBUG
from pheme.parameter import load_params
from pheme.get_user_information import get_username_role
Expand Down Expand Up @@ -102,7 +101,6 @@ def apply(self, name: str, data: Dict, parameter: Dict):
css = _load_template(self.__css_template, parameter).render(
Context(parameter)
)
css = sass.compile(string=css, output_style="compressed")
data['css'] = css

return _load_template(self.__template).render(
Expand All @@ -121,7 +119,6 @@ def apply(self, name: str, data: Dict, parameter: Dict):
css = _load_template(self.__css_template, parameter).render(
Context(parameter)
)
css = sass.compile(string=css, output_style="compressed")
html_template = _load_template(self.__template)
html = html_template.render(Context(_enrich(name, data, parameter)))
logger.debug("created html")
Expand Down
Loading