Coder Social home page Coder Social logo

Comments (8)

AndreasBackx avatar AndreasBackx commented on July 22, 2024 1

@jrief I don't mind. This issue is now fixed in #57. Sorry, I forgot to check this. The past few months have been a bit busy.

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on July 22, 2024

Interesting, I'll have a look tonight or tomorrow and get back to you with my findings.

@jrief could you test whether this is also the case with the Django template engine? Is this already tested perhaps?

from django-sass-processor.

int-ua avatar int-ua commented on July 22, 2024

I just tried creating a sass template tag for convenience and it's not working too with the error being

sass.html: 'NoneType' object has no attribute 'engine'

Template code:

{% load sass_tags %}
<link rel="stylesheet"{% if media %} media="{{ media }}"{% endif %} href="{% sass_src static_url %}{% if version %}?{{ version }}{% endif %}">

Tag code:

@register.inclusion_tag('meta/sass.html')
def sass(static_url, version=None, media=None):
    return {
        'static_url': static_url,
        'version': version,
        'media': media,
    }

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

@haloween
what is {% set PROJECT_SASS_FILE = 'xxx.scss' %} ?

did you intend something such as {% with ... %}

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on July 22, 2024

@jrief it's Jinja2, see under Assignments.

from django-sass-processor.

jrief avatar jrief commented on July 22, 2024

@AndreasBackx would you like to get write access to the repository so that you can handle all Jinja2 related issues. Since I don't use Jinja2 I really can't give any advise on it.

from django-sass-processor.

AndreasBackx avatar AndreasBackx commented on July 22, 2024

@int-ua could you give us a testable small project and perhaps a full stacktrace in a new issue?

from django-sass-processor.

int-ua avatar int-ua commented on July 22, 2024

Yes, a little later, thank you.

from django-sass-processor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.