theovier / printable-multipage-cv

Simple customizable and printable CV spanning multiple pages.
GNU General Public License v3.0
1 stars 0 forks source link

Find a Way to Store and Edit (History) Entries #3

Open theovier opened 2 years ago

theovier commented 2 years ago

It might be the easiest choice to simply parse JSON and have one file per section, e.g. "work-history.json" with could look like


entries = [
    {
          "from": "10/2018",
          "to": "today",
          "title": "My Title"
    }
];

However when we do this, we have to think about a way to enable multi-line content for an entry. Maybe a list of children that are each rendered in an own <div>?

theovier commented 2 years ago

Consider an education.json file which lists all educational entries of your career:

[
    {
        "cue": "10/2020 — 10/2021",
        "title": "University",
        "content": [
            "this could be an own paragraph",
            "so could this.",
            "third paragraph"
        ]
    }
]

it can be parsed and could result in

<entry cue="10/2020 - 10/2021" title="University">
    <p>this could be an own paragraph</p>
    <p>so could this.</p>
    <p>third paragraph</p>
</entry>