Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
It is, but the main issue is how to select the values from the database and to render without the user needing to tweak anything
Latex, MD, Word is equivalent (although Word is preferred) since I'll just place universal markers in it
I am working on something similar and also planning on LaTex because it will be so easy to do find and replace because it's plain text (just adding placeholders like ##NAME## or whatever), but I'm only planning on outputting PDFs, which would be easy enough. I don't think there's many viable solutions to go LaTex to docx if that's a big requirement for you
I'm using docxtpl which uses jinja placeholder to set values.
For your solution, you should use jinja It's used for whatever text files you want, htlm, txt, latex, MD, etc. And you can put code into the document (see my examples document in the post)
Ah thanks! I am working with .NET, and I was surprised how there's little out there in terms of (open source) libraries for LaTex (I did some research since this comment). I might end up going with docx via the OpenXML API. Also, I haven't really used LaTex before (has been on on my learning to-do list), and once I started messing with some templates, I realized I need to learn a lot more first.
One thing with my documents is that find and replace alone won't work, as I need to replace some patterns. I am generating resumes, so I need to take something like a pattern for a job, and then repeat it several times
Yes, that why I recommand jinja. as it can be used in OpenXML as well as latex or anything in plain text.
Let's say you want to place a table that corresponds to a certain pattern, you could add it to your file conditionally. In your Word document, you could add that :
I don't know .NET but you can probably call a Jinja tools
Also for the resume, you might be insterested in Rx Resume
Ah thanks for letting me know about Rx Resume! Great resource, and actually solves the last mile problem (creating the document) of my little personal app. I am a bit of a jack of all trades, so I made a little database for the resume where the lowest level item (the little bullet points in the experience) can have tags attached to them. So I might describe the same job/experience in multiple ways depending on who the audience is, and then filter for the tags to only get the bullet points that are relevant for that position and generate a resume.
Now instead of going into some whole slog of coding document generation, I can just export that bit as JSON and import into Rx Resume! Thanks again!
One way to do it is have a small Python (or any other scripting language really) script that performs text replacements in the Latex source file. This is much easier in Latex because it's plain text. I don't know of a solution that doesn't involve writing your own code (apart from LO/Word serial letters).