runeblog 0.2.36 → 0.2.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mkwidget +209 -0
  3. data/empty_view/themes/standard/blog/generate.lt3 +12 -12
  4. data/empty_view/themes/standard/blog/index.lt3 +0 -1
  5. data/empty_view/themes/standard/widgets/bydates/README +2 -0
  6. data/empty_view/themes/standard/widgets/bydates/bydates.lt3 +2 -0
  7. data/empty_view/themes/standard/widgets/bydates/bydates.rb +14 -0
  8. data/empty_view/themes/standard/widgets/bydates/card.css +1 -0
  9. data/empty_view/themes/standard/widgets/bydates/custom.rb +1 -0
  10. data/empty_view/themes/standard/widgets/bydates/local-vars.lt3 +12 -0
  11. data/empty_view/themes/standard/widgets/bydates/main.css +2 -0
  12. data/empty_view/themes/standard/widgets/bydates/pieces/card-head.lt3 +8 -0
  13. data/empty_view/themes/standard/widgets/bydates/pieces/card-tail.lt3 +4 -0
  14. data/empty_view/themes/standard/widgets/bydates/pieces/main-head.lt3 +10 -0
  15. data/empty_view/themes/standard/widgets/bydates/pieces/main-tail.lt3 +4 -0
  16. data/empty_view/themes/standard/widgets/links/README +2 -0
  17. data/empty_view/themes/standard/widgets/links/card.css +1 -0
  18. data/empty_view/themes/standard/widgets/links/custom.rb +1 -0
  19. data/empty_view/themes/standard/widgets/links/links.lt3 +1 -1
  20. data/empty_view/themes/standard/widgets/links/links.rb +14 -0
  21. data/empty_view/themes/standard/widgets/links/local-vars.lt3 +12 -0
  22. data/empty_view/themes/standard/widgets/links/main.css +2 -0
  23. data/empty_view/themes/standard/widgets/links/pieces/card-head.lt3 +8 -0
  24. data/empty_view/themes/standard/widgets/links/pieces/card-tail.lt3 +4 -0
  25. data/empty_view/themes/standard/widgets/links/pieces/main-head.lt3 +10 -0
  26. data/empty_view/themes/standard/widgets/links/pieces/main-tail.lt3 +4 -0
  27. data/empty_view/themes/standard/widgets/news/README +2 -0
  28. data/empty_view/themes/standard/widgets/news/card.css +1 -0
  29. data/empty_view/themes/standard/widgets/news/custom.rb +1 -0
  30. data/empty_view/themes/standard/widgets/news/local-vars.lt3 +12 -0
  31. data/empty_view/themes/standard/widgets/news/main.css +2 -0
  32. data/empty_view/themes/standard/widgets/news/news.rb +14 -0
  33. data/empty_view/themes/standard/widgets/news/pieces/card-head.lt3 +8 -0
  34. data/empty_view/themes/standard/widgets/news/pieces/card-tail.lt3 +4 -0
  35. data/empty_view/themes/standard/widgets/news/pieces/main-head.lt3 +10 -0
  36. data/empty_view/themes/standard/widgets/news/pieces/main-tail.lt3 +4 -0
  37. data/empty_view/themes/standard/widgets/pages/card.css +1 -0
  38. data/empty_view/themes/standard/widgets/pages/custom.rb +1 -0
  39. data/empty_view/themes/standard/widgets/pages/local-vars.lt3 +12 -0
  40. data/empty_view/themes/standard/widgets/pages/local.rb +0 -0
  41. data/empty_view/themes/standard/widgets/pages/main.css +2 -0
  42. data/empty_view/themes/standard/widgets/pages/pages.rb +21 -0
  43. data/empty_view/themes/standard/widgets/pages/pieces/card-head.lt3 +1 -0
  44. data/empty_view/themes/standard/widgets/pages/pieces/card-tail.lt3 +1 -0
  45. data/empty_view/themes/standard/widgets/pages/pieces/main-head.lt3 +10 -0
  46. data/empty_view/themes/standard/widgets/pages/pieces/main-tail.lt3 +2 -0
  47. data/empty_view/themes/standard/widgets/pinned/README +2 -0
  48. data/empty_view/themes/standard/widgets/pinned/card.css +1 -0
  49. data/empty_view/themes/standard/widgets/pinned/custom.rb +1 -0
  50. data/empty_view/themes/standard/widgets/pinned/local-vars.lt3 +12 -0
  51. data/empty_view/themes/standard/widgets/pinned/main.css +2 -0
  52. data/empty_view/themes/standard/widgets/pinned/pieces/card-head.lt3 +8 -0
  53. data/empty_view/themes/standard/widgets/pinned/pieces/card-tail.lt3 +4 -0
  54. data/empty_view/themes/standard/widgets/pinned/pieces/main-head.lt3 +10 -0
  55. data/empty_view/themes/standard/widgets/pinned/pieces/main-tail.lt3 +4 -0
  56. data/empty_view/themes/standard/widgets/pinned/pinned.lt3 +2 -0
  57. data/empty_view/themes/standard/widgets/pinned/pinned.rb +14 -0
  58. data/empty_view/themes/standard/widgets/search/README +2 -0
  59. data/empty_view/themes/standard/widgets/search/card.css +1 -0
  60. data/empty_view/themes/standard/widgets/search/custom.rb +1 -0
  61. data/empty_view/themes/standard/widgets/search/local-vars.lt3 +12 -0
  62. data/empty_view/themes/standard/widgets/search/main.css +2 -0
  63. data/empty_view/themes/standard/widgets/search/pieces/card-head.lt3 +8 -0
  64. data/empty_view/themes/standard/widgets/search/pieces/card-tail.lt3 +4 -0
  65. data/empty_view/themes/standard/widgets/search/pieces/main-head.lt3 +10 -0
  66. data/empty_view/themes/standard/widgets/search/pieces/main-tail.lt3 +4 -0
  67. data/empty_view/themes/standard/widgets/search/search.lt3 +2 -0
  68. data/empty_view/themes/standard/widgets/search/search.rb +14 -0
  69. data/empty_view/themes/standard/widgets/sitemap/README +2 -0
  70. data/empty_view/themes/standard/widgets/sitemap/card.css +1 -0
  71. data/empty_view/themes/standard/widgets/sitemap/custom.rb +1 -0
  72. data/empty_view/themes/standard/widgets/sitemap/local-vars.lt3 +12 -0
  73. data/empty_view/themes/standard/widgets/sitemap/main.css +2 -0
  74. data/empty_view/themes/standard/widgets/sitemap/pieces/card-head.lt3 +8 -0
  75. data/empty_view/themes/standard/widgets/sitemap/pieces/card-tail.lt3 +4 -0
  76. data/empty_view/themes/standard/widgets/sitemap/pieces/main-head.lt3 +10 -0
  77. data/empty_view/themes/standard/widgets/sitemap/pieces/main-tail.lt3 +4 -0
  78. data/empty_view/themes/standard/widgets/sitemap/sitemap.lt3 +2 -0
  79. data/empty_view/themes/standard/widgets/sitemap/sitemap.rb +14 -0
  80. data/empty_view/themes/standard/widgets/tag-cloud/OLD-example.lt3 +12 -0
  81. data/empty_view/themes/standard/widgets/tag-cloud/README +2 -0
  82. data/empty_view/themes/standard/widgets/tag-cloud/card.css +1 -0
  83. data/empty_view/themes/standard/widgets/tag-cloud/custom.rb +1 -0
  84. data/empty_view/themes/standard/widgets/tag-cloud/local-vars.lt3 +12 -0
  85. data/empty_view/themes/standard/widgets/tag-cloud/main.css +2 -0
  86. data/empty_view/themes/standard/widgets/tag-cloud/pieces/card-head.lt3 +8 -0
  87. data/empty_view/themes/standard/widgets/tag-cloud/pieces/card-tail.lt3 +4 -0
  88. data/empty_view/themes/standard/widgets/tag-cloud/pieces/main-head.lt3 +10 -0
  89. data/empty_view/themes/standard/widgets/tag-cloud/pieces/main-tail.lt3 +4 -0
  90. data/empty_view/themes/standard/widgets/tag-cloud/tag-cloud.lt3 +1 -10
  91. data/empty_view/themes/standard/widgets/tag-cloud/tag-cloud.rb +14 -0
  92. data/lib/helpers-repl.rb +4 -2
  93. data/lib/liveblog.rb +75 -12
  94. data/lib/repl.rb +34 -21
  95. data/lib/runeblog.rb +7 -4
  96. data/lib/runeblog_version.rb +1 -1
  97. data/lib/xlate.rb +5 -0
  98. data/test/make_blog.rb +23 -2
  99. metadata +88 -6
  100. data/empty_view/remote/widgets/pages/SUBFILES +0 -1
  101. data/empty_view/themes/standard/widgets/calendar/calendar.lt3 +0 -6
  102. data/empty_view/themes/standard/widgets/pages/SUBFILES +0 -1
  103. data/empty_view/themes/standard/widgets/pages/generated.lt3 +0 -4
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,14 @@
1
+ # Custom code for 'news' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class News
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Recent News</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # pages: Pages
2
+ .set widget.name = "Pages"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for pages widget
2
+ * { font-family: verdana }
@@ -0,0 +1,21 @@
1
+ # Custom code for 'pages' widget
2
+
3
+ # How to update repl code?
4
+
5
+ class ::RuneBlog::Widget
6
+ class Pages
7
+ def self.build
8
+ children = Dir["*.lt3"] - ["pages.lt3"]
9
+ children.each do |child|
10
+ dest = child.sub(/.lt3$/, ".html")
11
+ xlate src: child, dst: dest # , debug: true
12
+ end
13
+ end
14
+
15
+ def self.edit_menu
16
+ end
17
+
18
+ def self.refresh
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,10 @@
1
+ .set card.title=Pages
2
+
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # pinned: Pinned Posts
2
+ .set widget.name = "Pinned Posts"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Pinned Posts</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ .mixin liveblog
2
+ .make_main_links pinned Pinned Posts
@@ -0,0 +1,14 @@
1
+ # Custom code for 'pinned' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class Pinned
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # search: Search Posts
2
+ .set widget.name = "Search Posts"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Search Posts</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ .mixin liveblog
2
+ .make_main_links search Search Posts
@@ -0,0 +1,14 @@
1
+ # Custom code for 'search' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class Search
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # sitemap: Site Map
2
+ .set widget.name = "Site Map"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Site Map</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,2 @@
1
+ .mixin liveblog
2
+ .make_main_links sitemap Site Map
@@ -0,0 +1,14 @@
1
+ # Custom code for 'sitemap' widget
2
+
3
+ class ::RuneBlog::Widget
4
+ class Sitemap
5
+ def self.build
6
+ end
7
+
8
+ def self.edit_menu
9
+ end
10
+
11
+ def self.refresh
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ .mixin liveblog
2
+
3
+ .tag_cloud
4
+ https://google.com/,btn btn-dark m-1,Programming
5
+ https://google.com/,btn btn-danger m-1,Science Fiction
6
+ https://google.com/,btn btn-light m-1,Art
7
+ https://google.com/,btn btn-dark m-1,Robotics
8
+ https://google.com/,btn btn-warning m-1,Food and Travel
9
+ https://google.com/,btn btn-light m-1,DIY Hacks
10
+ https://google.com/,btn btn-info m-1,Surfing
11
+ .end
12
+
@@ -0,0 +1,2 @@
1
+ This is for a "standard" Runeblog widget
2
+ Code and docs are a work in progress
@@ -0,0 +1 @@
1
+ # CSS for sidebar card
@@ -0,0 +1 @@
1
+ # This is for specialized livetext add-ons (Ruby methods)
@@ -0,0 +1,12 @@
1
+ # tag-cloud: Tag Cloud
2
+ .set widget.name = "Tag Cloud"
3
+
4
+ . heredocs (in case of embedded commas)
5
+
6
+ .heredoc card.title
7
+ $widget.name
8
+ .end
9
+
10
+ .heredoc main.title
11
+ $widget.name
12
+ .end
@@ -0,0 +1,2 @@
1
+ # CSS for main area page
2
+ * { font-family: verdana }
@@ -0,0 +1,8 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before card data
3
+ <html>
4
+ <head>
5
+ <style src="card.css"></style>
6
+ </head>
7
+ <body>
8
+ <h1>Tag Cloud</h1>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -0,0 +1,10 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go before main data
3
+ <html>
4
+ <head>
5
+ <style src="main.css"></style>
6
+ <!-- ^ Why doesn't this work? -->
7
+ <style>* { font-family: verdana }</style>
8
+ </head>
9
+ <body>
10
+ <h1>$card.title</h1><hr>
@@ -0,0 +1,4 @@
1
+ .include ../local_vars.lt3
2
+ . Material (if any) to go after main data
3
+ </body>
4
+ </html>
@@ -1,12 +1,3 @@
1
1
  .mixin liveblog
2
2
 
3
- .tag_cloud
4
- https://google.com/,btn btn-dark m-1,Programming
5
- https://google.com/,btn btn-danger m-1,Science Fiction
6
- https://google.com/,btn btn-light m-1,Art
7
- https://google.com/,btn btn-dark m-1,Robotics
8
- https://google.com/,btn btn-warning m-1,Food and Travel
9
- https://google.com/,btn btn-light m-1,DIY Hacks
10
- https://google.com/,btn btn-info m-1,Surfing
11
- .end
12
-
3
+ <h3>Currently nothing here -- not implemented</h3)