Basci atom feed generation
This commit is contained in:
parent
7d5cbfba3c
commit
53c0c6a9d6
6 changed files with 101 additions and 7 deletions
|
@ -16,3 +16,16 @@ has Int:D $.placeholder-id is rw = 0;
|
|||
|
||||
#| The id of the about post
|
||||
has Int:D $.about-id is rw = 0;
|
||||
|
||||
#| The base url of this post
|
||||
has Str:D $.base-url is required;
|
||||
|
||||
#| Return the base url, but substitute it out if the test environment variable
|
||||
#| is set
|
||||
method get-base-url(--> Str:D) {
|
||||
if %*ENV<BLOG_TEST> {
|
||||
"http://localhost:8080"
|
||||
} else {
|
||||
$!base-url
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue