-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template (and forms) engine overhaul #443
Commits on Mar 29, 2024
-
Refactor variable substitution
Variable substitution is essentially the same as tag insertion, so the two features can share the same underlying implementation.
Configuration menu - View commit details
-
Copy full SHA for 1491072 - Browse repository at this point
Copy the full SHA 1491072View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8002ec6 - Browse repository at this point
Copy the full SHA 8002ec6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f62fdf0 - Browse repository at this point
Copy the full SHA f62fdf0View commit details -
Distinguish Template from Form
(HTML) Forms is an extension of the Templates feature in RMS Express. Templates are the .txt files. Some templates support HTML forms, indicated by the Template Control Field `Form`.
Configuration menu - View commit details
-
Copy full SHA for 5b96698 - Browse repository at this point
Copy the full SHA 5b96698View commit details -
Improve form variable prompting in CLI composer
Forms-enabled templates is not written with a CLI user in mind. By echoing the template line before prompting for a <Var ...>, it will hopefully be possible to understand the meaning of the variable (by context). Also apply a hack to refresh the regular expressions used by varReplacer, to avoid prompting for the same variable multiple times.
Configuration menu - View commit details
-
Copy full SHA for 461b7a6 - Browse repository at this point
Copy the full SHA 461b7a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 300a993 - Browse repository at this point
Copy the full SHA 300a993View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c55e0a - Browse repository at this point
Copy the full SHA 8c55e0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99b1990 - Browse repository at this point
Copy the full SHA 99b1990View commit details -
Configuration menu - View commit details
-
Copy full SHA for f565b4e - Browse repository at this point
Copy the full SHA f565b4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2bdc6a - Browse repository at this point
Copy the full SHA d2bdc6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ea6cd7 - Browse repository at this point
Copy the full SHA 7ea6cd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91505ba - Browse repository at this point
Copy the full SHA 91505baView commit details -
Add a couple of missing insertion Tags + docs
<Day>, <UDay>, <GPSLatitude> and <GPSLongitude>
Configuration menu - View commit details
-
Copy full SHA for 90be40d - Browse repository at this point
Copy the full SHA 90be40dView commit details -
Refactor XML marshalling and add tests
Also fixed issue of inconsistent output due to unstable ordering of form variables.
Configuration menu - View commit details
-
Copy full SHA for b4c6c2b - Browse repository at this point
Copy the full SHA b4c6c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66c6dd7 - Browse repository at this point
Copy the full SHA 66c6dd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bcde3a - Browse repository at this point
Copy the full SHA 6bcde3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a911ce1 - Browse repository at this point
Copy the full SHA a911ce1View commit details -
Ignore invalid file references
This fixes an issue where, when searching for a html viewer, we ended up using a non-existent HTML file.
Configuration menu - View commit details
-
Copy full SHA for d01879f - Browse repository at this point
Copy the full SHA d01879fView commit details -
Fallback to global file reference search
Some templates references HTML Forms and reply templates located in adjecent folders, without specifying a relative path. Examples of this can be found in `MAPPING-GIS FORMS`.
Configuration menu - View commit details
-
Copy full SHA for 2df1a56 - Browse repository at this point
Copy the full SHA 2df1a56View commit details -
Resolve Form files by referencing the template
By referencing the template instead of the "initial_uri" (Forms composer), the backend is able to more precisely identify the correct HTML file for any given template. It also makes handling of reply templates much easier. In addition to a less complex implementation, this simplifies the API as we no longer need to supply the frontend with URIs for all HTML variants. We also get increased performance because of the simplified file search, and by not having to parse reply templates upfront. This also opens up the possibility of serving a specialized HTML-based composer for text-only templates in the future, without having to change the existing frontend.
Configuration menu - View commit details
-
Copy full SHA for fbfed32 - Browse repository at this point
Copy the full SHA fbfed32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79b6cc0 - Browse repository at this point
Copy the full SHA 79b6cc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9de98d3 - Browse repository at this point
Copy the full SHA 9de98d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60f1710 - Browse repository at this point
Copy the full SHA 60f1710View commit details -
Configuration menu - View commit details
-
Copy full SHA for d62bb92 - Browse repository at this point
Copy the full SHA d62bb92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44a5e4b - Browse repository at this point
Copy the full SHA 44a5e4bView commit details -
Remove trailing space in GPSValid insertion tag
Winlink Express does include this, and neither should we.
Configuration menu - View commit details
-
Copy full SHA for 1c74d30 - Browse repository at this point
Copy the full SHA 1c74d30View commit details -
Trim whitespace from form vars in XML attachment
I found this difference when comparing against Winlink Express's output using the same Form template. Winlink Express trims trailing whitespace before writing the form variables as XML.
Configuration menu - View commit details
-
Copy full SHA for 57f479d - Browse repository at this point
Copy the full SHA 57f479dView commit details -
Fix formatting of dates in test
Gofmt did not agree with my zero-padded numeric constants.
Configuration menu - View commit details
-
Copy full SHA for 6270fb8 - Browse repository at this point
Copy the full SHA 6270fb8View commit details