diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-04-10 17:34:07 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-04-10 21:28:04 +0200 |
commit | cd5327bee83f3e9467d786752bbd447963b941f7 (patch) | |
tree | 7abb6d242fc551b33b1d5b9f066fdabf4ef64c4d /tpl/export.bookmarks.html | |
parent | 745304c842e6e1234aac41a3f1c496c4522f32c5 (diff) | |
download | Shaarli-cd5327bee83f3e9467d786752bbd447963b941f7.tar.gz Shaarli-cd5327bee83f3e9467d786752bbd447963b941f7.tar.zst Shaarli-cd5327bee83f3e9467d786752bbd447963b941f7.zip |
Refactor Netscape bookmark exporting
Relates to https://github.com/shaarli/netscape-bookmark-parser/issues/5
Fixes:
- respect the Netscape bookmark format "specification"
Modifications:
- [application] introduce the NetscapeBookmarkUtils class
- [template] export - improve formatting, rename export selection parameter
- [template] export.bookmarks - template for Netscape exports
- [tests] bookmark filtering, additional field generation
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tpl/export.bookmarks.html')
-rw-r--r-- | tpl/export.bookmarks.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tpl/export.bookmarks.html b/tpl/export.bookmarks.html new file mode 100644 index 00000000..da733257 --- /dev/null +++ b/tpl/export.bookmarks.html | |||
@@ -0,0 +1,10 @@ | |||
1 | <!DOCTYPE NETSCAPE-Bookmark-file-1> | ||
2 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | ||
3 | <!-- This is an automatically generated file. | ||
4 | It will be read and overwritten. | ||
5 | Do Not Edit! -->{ignore}The RainTPL loop is formatted to avoid generating extra newlines{/ignore} | ||
6 | <TITLE>{$pagetitle}</TITLE> | ||
7 | <H1>Shaarli export of {$selection} bookmarks on {$date}</H1> | ||
8 | <DL><p>{loop="links"} | ||
9 | <DT><A HREF="{$value.url}" ADD_DATE="{$value.timestamp}" PRIVATE="{$value.private}" TAGS="{$value.taglist}">{$value.title}</A>{if="$value.description"}{$eol}<DD>{$value.description}{/if}{/loop} | ||
10 | </DL><p> | ||