Giter Club home page Giter Club logo

Comments (9)

mattn avatar mattn commented on July 21, 2024

Please try post.Title

from jedie.

tyeeman avatar tyeeman commented on July 21, 2024

I don't think that works because this line is an instruction that tells how to get a page url using a go command from another application, not Jedie. Here is the full line -

To get a post's page URL in a template use the `slug` function (described
below) like this: `<a href="/{{.Title | slug}}.html">A Post</a>`.

Can you see now? You can see the back ticks (`) which I think is saying this is code and copy it as written. Jedie should do that and not try to interpret it I believe. I'm not sure if this problem is due to Jedie or a blackfriday problem??

from jedie.

mattn avatar mattn commented on July 21, 2024

It is pongo2's behavior.

from jedie.

tyeeman avatar tyeeman commented on July 21, 2024

Is that a bug then, and I should mention it on their repo?

Is there a simple way I can use another template engine in jedie?

from jedie.

mattn avatar mattn commented on July 21, 2024

I'm not sure but probably you can use:

{% comment %}`<a href="/{{.Title | slug}}.html">A Post</a>`{% endcomment %}

from jedie.

tyeeman avatar tyeeman commented on July 21, 2024

OK, adding the comment tag allowed the build but left nothing in that space.

Also during the build, it initially did not build with my files because I'm on Windows and use CRLF instead of LF only. I changed my files to LF only and the build worked.

from jedie.

mattn avatar mattn commented on July 21, 2024

OK, adding the comment tag allowed the build but left nothing in that space.

OMG, Hmm, How about to escape {{ to %7b%7b or \{\{ ?

from jedie.

tyeeman avatar tyeeman commented on July 21, 2024

I tried the backslashes but no difference.

from jedie.

mattn avatar mattn commented on July 21, 2024

Hmm, this is a limit of pongo2. If you want to solve this issue, please file new issue on pongo2.

from jedie.

Related Issues (3)

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.