VSCode Extension for Liquid NotebooksThis is a Visual Studio Code extension to support Liquid Notebooks. Liquid is an open-source template language created by Shopify. The input is text based combined with Liquid commands, indicated by the use of braces {}. The text can be anything, like HTML, CSS, JSON and more. Shopify provided a full reference to the Liquid language. It's a secure template language that is also very accessible for non-programmer audiences. A Liquid Notebook can contain markdown blocks (text) and code blocks. Code blocks support (HTML) Liquid, but also offers a built-in This extension depends on these extensions which are automatically installed whit this extension:
To learn more about this extension, we have made available a Liquid Notebook called Getting Started with Liquid Notebooks. This is a getting started guide on using the extension. If you want to learn more about using the Liquid language, another Liquid Notebook called Getting Started with Liquid is available as well. All sources, including these notebooks can be found in the open source GitHub repo. DataThe notebook will combine data and the provided Liquid to produce output in the Notebook. The following formats are supported:
These files should be placed in one folder. Parquet files and CSV files are treated as tables accessible via the The data model also make the CSV FilesFor a CSV file, every column is separated by a comma. The first line of the file is used as the list of field names. A sample of a well formed CSV file for Patients is this:
JSON FilesJSON files are accessible by using the name of the file without extension and where spaces are replace by a dash (e.g. 'sample file' is 'sample-file'). The JSON structure can then be navigated using properties by name and using indexers for arrays. So something like
.env FilesA .env file has a environment variable setting per line, where the format is
You can reference the variable either with Sample dataSample data can be found in the repo as well. The data model is explained there as well. It is a simplified model for FHIR HL7 Healthcare Claims. You can download that demo set and place it anywhere on your disk and configure it in your Liquid Notebook using Settings](#Settings). TemplatesWhen you are developing (partial) Liquid Templates, you can place them in a folder as well and reuse in the notebook as well. SettingsTo have the settings for your notebook, include a Settings language block at the top of your file and run it. You can use commands like this:
|