Skip to content

Commit

Permalink
#219 merge content and template module
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Marx committed Sep 4, 2024
1 parent 4028877 commit d50f05b
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 76 deletions.
18 changes: 18 additions & 0 deletions cms-content/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,23 @@
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.33</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf</artifactId>
<version>3.1.2.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.pebbletemplates</groupId>
<artifactId>pebble</artifactId>
<version>3.2.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
import com.github.thmarx.cms.extensions.hooks.DBHooks;
import com.github.thmarx.cms.extensions.hooks.TemplateHooks;
import com.github.thmarx.cms.extensions.request.RequestExtensions;
import com.github.thmarx.cms.template.functions.LinkFunction;
import com.github.thmarx.cms.template.functions.list.NodeListFunctionBuilder;
import com.github.thmarx.cms.template.functions.navigation.NavigationFunction;
import com.github.thmarx.cms.template.functions.query.QueryFunction;
import com.github.thmarx.cms.template.functions.taxonomy.TaxonomyFunction;
import com.github.thmarx.cms.content.template.functions.LinkFunction;
import com.github.thmarx.cms.content.template.functions.list.NodeListFunctionBuilder;
import com.github.thmarx.cms.content.template.functions.navigation.NavigationFunction;
import com.github.thmarx.cms.content.template.functions.query.QueryFunction;
import com.github.thmarx.cms.content.template.functions.taxonomy.TaxonomyFunction;
import com.github.thmarx.modules.api.ModuleManager;
import java.io.IOException;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions;
package com.github.thmarx.cms.content.template.functions;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions;
package com.github.thmarx.cms.content.template.functions;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.hooks;
package com.github.thmarx.cms.content.template.functions.hooks;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.list;
package com.github.thmarx.cms.content.template.functions.list;

/*-
* #%L
Expand Down Expand Up @@ -32,7 +32,7 @@
import com.github.thmarx.cms.api.feature.features.MarkdownRendererFeature;
import com.github.thmarx.cms.api.model.ListNode;
import com.github.thmarx.cms.api.request.RequestContext;
import com.github.thmarx.cms.template.functions.AbstractCurrentNodeFunction;
import com.github.thmarx.cms.content.template.functions.AbstractCurrentNodeFunction;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.list;
package com.github.thmarx.cms.content.template.functions.list;

/*-
* #%L
Expand Down Expand Up @@ -33,7 +33,7 @@
import com.github.thmarx.cms.api.model.ListNode;
import com.github.thmarx.cms.api.request.RequestContext;
import com.github.thmarx.cms.api.utils.NodeUtil;
import com.github.thmarx.cms.template.functions.AbstractCurrentNodeFunction;
import com.github.thmarx.cms.content.template.functions.AbstractCurrentNodeFunction;
import java.util.Comparator;
import java.util.Objects;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.navigation;
package com.github.thmarx.cms.content.template.functions.navigation;

/*-
* #%L
Expand Down Expand Up @@ -35,7 +35,7 @@
import com.github.thmarx.cms.api.request.RequestContext;
import com.github.thmarx.cms.api.utils.NodeUtil;
import com.github.thmarx.cms.api.utils.PathUtil;
import com.github.thmarx.cms.template.functions.AbstractCurrentNodeFunction;
import com.github.thmarx.cms.content.template.functions.AbstractCurrentNodeFunction;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.query;
package com.github.thmarx.cms.content.template.functions.query;

/*-
* #%L
Expand Down Expand Up @@ -31,7 +31,7 @@
import com.github.thmarx.cms.api.model.ListNode;
import com.github.thmarx.cms.api.request.RequestContext;
import com.github.thmarx.cms.filesystem.metadata.query.ExtendableQuery;
import com.github.thmarx.cms.template.functions.AbstractCurrentNodeFunction;
import com.github.thmarx.cms.content.template.functions.AbstractCurrentNodeFunction;
import com.google.common.base.Strings;
import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.shortcode;
package com.github.thmarx.cms.content.template.functions.shortcode;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.taxonomy;
package com.github.thmarx.cms.content.template.functions.taxonomy;

/*-
* #%L
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
import com.github.thmarx.cms.api.model.ListNode;
import com.github.thmarx.cms.api.request.RequestContext;
import com.github.thmarx.cms.content.views.model.View;
import com.github.thmarx.cms.template.functions.list.NodeListFunctionBuilder;
import com.github.thmarx.cms.template.functions.query.QueryFunction;
import com.github.thmarx.cms.content.template.functions.list.NodeListFunctionBuilder;
import com.github.thmarx.cms.content.template.functions.query.QueryFunction;
import com.google.common.base.Strings;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.navigation;
package com.github.thmarx.cms.content.template.navigation;

/*-
* #%L
Expand All @@ -22,6 +22,7 @@
* #L%
*/

import com.github.thmarx.cms.content.template.functions.navigation.NavigationFunction;
import com.github.thmarx.cms.api.content.ContentParser;
import com.github.thmarx.cms.api.db.Content;
import com.github.thmarx.cms.api.db.DB;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.shortcode;
package com.github.thmarx.cms.content.template.shortcode;

/*-
* #%L
Expand All @@ -22,6 +22,7 @@
* #L%
*/

import com.github.thmarx.cms.content.template.functions.shortcode.ShortCodeTemplateFunction;
import com.github.thmarx.cms.content.shortcodes.ShortCodes;
import freemarker.template.Configuration;
import freemarker.template.Template;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.shortcode;
package com.github.thmarx.cms.content.template.shortcode;

/*-
* #%L
Expand All @@ -22,6 +22,7 @@
* #L%
*/

import com.github.thmarx.cms.content.template.functions.shortcode.ShortCodeTemplateFunction;
import com.github.thmarx.cms.content.shortcodes.ShortCodes;
import io.pebbletemplates.pebble.PebbleEngine;
import io.pebbletemplates.pebble.loader.StringLoader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thmarx.cms.template.functions.shortcode;
package com.github.thmarx.cms.content.template.shortcode;

/*-
* #%L
Expand All @@ -22,6 +22,7 @@
* #L%
*/

import com.github.thmarx.cms.content.template.functions.shortcode.ShortCodeTemplateFunction;
import com.github.thmarx.cms.content.shortcodes.ShortCodes;
import java.util.Map;
import org.assertj.core.api.Assertions;
Expand Down
50 changes: 0 additions & 50 deletions cms-template/pom.xml

This file was deleted.

1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<module>cms-media</module>
<module>cms-git</module>
<module>cms-sandbox</module>
<module>cms-template</module>
<module>cms-content</module>
<module>cms-extensions</module>
<module>cms-auth</module>
Expand Down

0 comments on commit d50f05b

Please sign in to comment.