's Blog

DumbtemplateConfig.java Text Java

package shawnewald.dumbtemplates; import java.io.File; import java.util.Properties; import org.shawnewald.javatools.Prop; /** * Dumbtemplates - configuration class. * @author Shawn Ewald <shawn.ewald@gmail.com> * Copyright (C) 2012,2013 Shawn Ewald * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any lat more...

DumbtemplateCollectionWatcher.java Text Java

package shawnewald.dumbtemplates; import java.util.Date; import java.util.TimerTask; import java.io.File; /** * Dumbtemplates - Watches TemplateCollection for changes. * @author Shawn Ewald <shawn.ewald@gmail.com> * Copyright (C) 2012,2013 Shawn Ewald * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any l more...

DumbtemplateCollection.java Text Java

package shawnewald.dumbtemplates; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentHashMap; import java.util.Timer; import java.util.TimerTask; /** * Dumbtemplates - Template Collection class. * @author Shawn Ewald <shawn.ewald@gmail.com> * Copyright (C) 2012,2013 Shawn Ewald * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; eith more...

Dumbtemplate.java Text Java

package shawnewald.dumbtemplates; import java.io.File; import java.io.FileInputStream; import java.net.URL; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.text.StrSubstitutor; import org.apache.log4j.Logger; import org.shawnewald.javatools.Txt; /** * Dumbtemplates - Template processor methods. * @author Shawn Ewald <shawn.ewald@gmail.com> * Copyright (C) 2012,2013 Shawn Ewald * * This program is free software; you can redistribute it a more...

Dumbtemplates properties file Text .properties

# Path to template files (ex.: /path/to/template/files). templatePath=/var/www/templates # Template file extension. templateExt=.html # Watch for template file changes and reload templates on change 1=yes, 0=no watchTemplateChanges=1 # How frequently should we check for template changes. TemplateCheckInterval=time in milliseconds templateCheckInterval=10000 more...

Dumbtemplate pom.xml file Text XML

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>shawnewald</groupId> <artifactId>dumbtemplates</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>dumbtemplates</name> <url>http://maven.apache.org</url> <build> <plugins> <plugin> more...

Try posting an article Article

### What is an *'article'* on Text.tl? It is a posting of formatted text, either automatically formatted plain text or HTML or Markdown code. Text.tl supports the full Markdown syntax and a limited set of HTML tags: a, b, blockquote, br, cite, code, div, dd, dl, dt, em, h1, h2, h3, h4, h5, h6, i, img, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul and all [MathML](https://developer.mozilla.org/en-US/docs/Web/MathML) tags. We even support [markdown tables](https://www.markdown more...

Try posting a text (plain text example). Text

What is a 'text' on Text.tl? It is a posting of plain text with the original formatting (spaces and linebreaks) perfectly preserved and rendered as HTML with fidelity in your web browser. If your text is a piece of source code, Text.tl supports syntax highlighting for over 130 programming languages, markup languages and configuration files. You can choose an audience: Public: everyone can see it. Unlisted: people with the direct link can see it. Private: only you can see it. You can more...

Try posting a text (Java Source Example) Text Java

/** What is a 'text' on Text.tl? It is a posting of plain text with the original formatting (spaces and linebreaks) perfectly preserved and rendered as HTML with fidelity in your web browser. If your text is a piece of source code, Text.tl supports syntax highlighting for over 130 programming languages, markup languages and configuration files. You can choose an audience: Public: everyone can see it. Unlisted: people with the direct link can see it. Private: only you can s more...