base/src/sqwl/cms/datamodel.scala
changeset 33 fa0f19a74283
parent 27 8529ce302f7c
--- a/base/src/sqwl/cms/datamodel.scala	Tue Nov 24 13:15:49 2020 +0100
+++ b/base/src/sqwl/cms/datamodel.scala	Tue Dec 29 16:46:47 2020 +0100
@@ -1,7 +1,24 @@
+/*
+ * Copyright 2018-2020 Tomas Zeman <tomas@functionals.cz>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package sqwl.cms
 
 import java.nio.file.Path
 
+import scalatags.Text.all._
+
 trait Named {
   def name: String
 }
@@ -16,10 +33,9 @@
 
 trait iArticle extends Navigable {
   def title: String
-  def htmlContent: String
+  def htmlContent: SeqFrag[Frag]
   def category: Option[iCategory]
   def tags: Seq[iTag]
-  def assets: Path
   def rank: Int
 }
 
@@ -36,4 +52,5 @@
   def articleByPath(path: String): Option[iArticle]
   def categoryByPath(path: String): Option[iCategory]
   def tagByPath(path: String): Option[iTag]
+  def articleAssets(a: iArticle): Path
 }