diff --git a/README.md b/README.md index 8d45605..50e5b9b 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,8 @@ directory. Typical operation will involve setting these flags: *Other available tags* - `` _the full name of the project_ +- `` _the ID of the project_ +- `` _the theme of the project_ - `` _the URL where we have derived the page will be publically accessibly, only really usable if BaseURL is set (-B)_ - `` diff --git a/cinera/cinera.c b/cinera/cinera.c index 78bd74a..2ec555b 100644 --- a/cinera/cinera.c +++ b/cinera/cinera.c @@ -16,7 +16,7 @@ typedef struct version CINERA_APP_VERSION = { .Major = 0, .Minor = 5, - .Patch = 57 + .Patch = 58 }; // TODO(matt): Copy in the DB 3 stuff from cinera_working.c @@ -260,7 +260,9 @@ typedef struct char Custom14[MAX_CUSTOM_SNIPPET_LONG_LENGTH + 1]; char Custom15[MAX_CUSTOM_SNIPPET_LONG_LENGTH + 1]; + char ProjectID[MAX_PROJECT_ID_LENGTH + 1]; char ProjectName[MAX_PROJECT_NAME_LENGTH + 1]; + char Theme[MAX_PROJECT_NAME_LENGTH + 1]; char Title[MAX_TITLE_LENGTH + 1]; char URLIndex[MAX_BASE_URL_LENGTH + 1 + MAX_RELATIVE_PAGE_LOCATION_LENGTH + 1]; char URLPlayer[MAX_BASE_URL_LENGTH + 1 + MAX_RELATIVE_PAGE_LOCATION_LENGTH + 1 + MAX_PLAYER_URL_PREFIX_LENGTH + MAX_BASE_FILENAME_LENGTH + 1]; @@ -304,6 +306,8 @@ enum // Anywhere Optional TAG_PROJECT, + TAG_PROJECT_ID, + TAG_THEME, TAG_URL, } template_tags; @@ -343,8 +347,10 @@ tag Tags[] = { { TAG_TITLE, "__CINERA_TITLE__" }, { TAG_VIDEO_ID, "__CINERA_VIDEO_ID__" }, - { TAG_PROJECT, "__CINERA_PROJECT__" }, - { TAG_URL, "__CINERA_URL__" }, + { TAG_PROJECT, "__CINERA_PROJECT__" }, + { TAG_PROJECT_ID, "__CINERA_PROJECT_ID__" }, + { TAG_THEME, "__CINERA_THEME__" }, + { TAG_URL, "__CINERA_URL__" }, }; typedef struct @@ -2360,6 +2366,8 @@ PrintUsage(char *BinaryLocation, config *DefaultConfig) "\n" " Other available tags:\n" " \n" + " \n" + " \n" " \n" " Only really usable if BaseURL is set \e[1;30m(-B)\e[0m\n" " \n" @@ -2407,6 +2415,11 @@ DepartComment(buffer *Template) int ValidateTemplate(template **Template, char *Location, int TemplateType) { + // TODO(matt): Record line numbers and contextual information: + // + // + // < > + //