Comments (9)
Please try post.Title
from jedie.
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.
It is pongo2's behavior.
from jedie.
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.
I'm not sure but probably you can use:
{% comment %}`<a href="/{{.Title | slug}}.html">A Post</a>`{% endcomment %}
from jedie.
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.
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.
I tried the backslashes but no difference.
from jedie.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedie.