Comments (8)
from doctemplates.
Right, I see. Could you move this issue to jgm/doctemplates or should I open a new issue?
from doctemplates.
from doctemplates.
Note: no document is created. Try -o test.out
; you'll see there is no test.out
.
So you're getting an error message about invalid syntax in the template, which points to the line and column where the error is. All this is just right. The only thing that could be improved, as far as I can see, is that it could say unexpected "$endif$"
instead of unexpected "$"
. Am I missing something?
from doctemplates.
The only thing that could be improved, as far as I can see, is that it could say unexpected "$endif$" instead of unexpected "$"
That's correct. It's great the correct location is indicated, but if the error message indicated that a $
would be allowed, just not a lone $endif$
it'd be easier to correct the mistake in the template.
from doctemplates.
from doctemplates.
Well, actually a lone
$
would not be allowed.
You're right, but a single $
also has a good error message:
$endif$
^ -> error: unexpected "$"
^ maybe "error: $endif$ without $if$"?
$endi$ Ok, evaluates to empty string
Test $foo without closing dollar sign
^ -> error: unexpected " ", expecting "." or "$"
from doctemplates.
Yes, I agree that the messages could be somewhat better.
This is a low priority for me, though, compared to other things.
I'll move this to doctemplates and perhaps someone will take it up.
from doctemplates.
Related Issues (20)
- Naming of Pipes/Filters HOT 2
- Custom Pipes HOT 8
- Feature Request: Option to include files HOT 1
- Add a variable pipe transform that removes whitespace HOT 4
- Cannot access outer loop variables in templates with nested loops HOT 3
- Add option to disable "default true" parameters HOT 1
- Allow translation between formats for partials HOT 9
- Error on missing context variable HOT 3
- doctemplates-0.2.1 does not compile with ghc 8.4.1 HOT 2
- Feature : Add some functions that can be used in the pipe
- Dynamic partials possible?
- Is there a way to check if length > 1? HOT 1
- Error using partials with no extension when output format is beamer
- Custom delimiters (use a character other than '$') HOT 3
- conversion from JSON values - is it possible to force it? HOT 1
- add timestamp support in markdown variables HOT 1
- Add ability to iterate over key/value pairs in a map
- Module ‘Data.YAML’ does not export ‘ToYAML(..)’ HOT 1
- Overlapping instances HOT 1
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 doctemplates.