GithubHelp home page GithubHelp logo

Extend templates about nova HOT 5 CLOSED

carlotm avatar carlotm commented on June 8, 2024
Extend templates

from nova.

Comments (5)

Taure avatar Taure commented on June 8, 2024

I am not aware of that we should have a issue with this.

I can try it out and see what I can find. Do you have any example repo where I could reproduce this or is it only two files like above in a application?

I could reproduce it with the code in the ticket in a new project, I will see if we have an error in Nova or if this is an erlydtl issue. But will try to look into it.

from nova.

carlotm avatar carlotm commented on June 8, 2024

Here it is:
https://github.com/carlotm/lazyspeaker

(it's just the scaffolded project + the extend)

Thank you!

from nova.

burbas avatar burbas commented on June 8, 2024

Hi,

Sorry for the late response. The problem is that you can't define blocks as strings. In your example it should be

{% block main %}Hello world{% endblock %}

Observe that you don't have to explicitly say which block you are closing (Nested scopes are allowed but you can't have overlaps).

I'll try to look into the erlydtl-plugin and why it does not return any errors when they occur. I took @Taure code base and update it accordingly if you'd like to view an example of how extends could look like; https://github.com/novaframework/issue205

Best,
Niclas

from nova.

burbas avatar burbas commented on June 8, 2024

Closed the issue for now. Feel free to open a new one if you see a potential bug!

from nova.

carlotm avatar carlotm commented on June 8, 2024

Fantastic! Thank you

from nova.

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.