Move MarkdownPost to its own file
This commit is contained in:
parent
3fd900b2d6
commit
f767eeb589
3 changed files with 20 additions and 13 deletions
|
@ -8,18 +8,7 @@ use JSON::Class:auth<zef:vrurg>;
|
|||
|
||||
use DB::Post;
|
||||
use DB::BlogMeta;
|
||||
|
||||
#| A plain markdown post
|
||||
class MarkdownPost does Post is json {
|
||||
#| Marker for disambiguation between post types in json representation, the
|
||||
#| cheaty way
|
||||
has Bool:D $.markdown = True;
|
||||
|
||||
method title(--> Str:D) {
|
||||
markdown-title($!source)
|
||||
}
|
||||
}
|
||||
|
||||
use DB::MarkdownPost;
|
||||
|
||||
#| A plain markdown post
|
||||
class IdrisPost does Post is json {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue