Comments (2)
So we need a New Bucvac Design:
- Read TeX input, read metadata out of input
- Read stencil, fill with jinjr, execute hooks to write metadata (e.g. Buc_title)
- Output stenciled TeX to file and XeLaTeX it twice
- Run
add_record
orupdate_record
- Profit.
from bucephalus.
Jinja allows us to add in custom filters, which means we should be able to write in a stencil {{ course ~ " assignment " ~ asstno | hp2_set_meta("Buc_title") }}
instead of doing this manually. This is in line with the objective of replacing Pystache with Jinja outlined in the original issue comment.
With respect to allowing \input, the simplest solution seems to be exporting a tag like {{Hp2_stencildir}}
so that something like \input{ {{Hp2_stencildir}}/myfunincludefile.tex
can be written. Alternatively, we could use a filter like {{"myfunincludefile.tex"|Hp2_include}}
, but this would be less desirable as it means that the user is forced to use \input
instead of \include
.
from bucephalus.
Related Issues (14)
- Date timestamps not zero filled on web
- Implement chains and next/prev links
- Centralise database open
- asst.mustache should have commands for question and part HOT 1
- Searching will only return first match if multiple results have same filename
- Caching in dbops
- Combine bucadd and bucfup
- Add support for HTML output into bucvac HOT 1
- When removing files, disallow reuse of IDs
- More sane file storage
- Better tag management HOT 1
- `bucvac` and `bucadd` should print ID of new files
- Hp2 is not adding source files correctly
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 bucephalus.