Generalized the handlebars code.

This commit is contained in:
YourWishes committed 2021-08-05 10:03:47 -07:00
1 parent b62beee3e4
commit 351a9e3260
7 files changed
+151 -97

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
#define STRING_HANDLEBAR_KEY_MAXLENGTH 32
/** Representation of a String Handlebar Variable */
typedef struct {
/** The key to use to replace in the source */
char *key;
/** The value to replace it with */
char *value;
} stringhandlebarvariable_t;