Compare commits

...

2 Commits

Author SHA1 Message Date
j4nk d2d49f649b Merge remote-tracking branch 'origin/master' 2023-01-04 10:44:08 -05:00
j4nk 7e62a5158f Added last updated directive 2023-01-04 10:43:27 -05:00
3 changed files with 5 additions and 1 deletions

View File

@ -79,6 +79,7 @@
(let ((cleanline (md4tj-clean-multiline line)))
;; If this is a signal to include another file
(cond ((string-match "^@@INCLUDE" line) (md4tj-parse-to-string (nth 1 (split-string line))))
((string-match "^@@LASTUPDATED" line) (concat "Last updated: " (current-time-string)))
;; If this is some other signal, ignore
((string-match "^@@" line) "")
;; Otherwise, process as normal

View File

@ -2,6 +2,7 @@
<html lang="en-us">
<head>
<link rel="stylesheet" href="test_css.css">
<title>Test webpage</title>
@ -45,5 +46,6 @@ int main() {
</code>
</pre>
<br/>
Last updated: Wed Jan 4 10:43:05 2023
</body>
</html>

View File

@ -26,4 +26,5 @@ int main() {
printf("%s\n", "Hello World!");
return 0;
}
```
```
@@LASTUPDATED