diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 671af7d66..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,88 +0,0 @@ -# This configuration was automatically generated from a CircleCI 1.0 config. -# It should include any build commands you had along with commands that CircleCI -# inferred from your project structure. We strongly recommend you read all the -# comments in this file to understand the structure of CircleCI 2.0, as the idiom -# for configuration has changed substantially in 2.0 to allow arbitrary jobs rather -# than the prescribed lifecycle of 1.0. In general, we recommend using this generated -# configuration as a reference rather than using it in production, though in most -# cases it should duplicate the execution of your original 1.0 config. -version: 2 -jobs: - build: - working_directory: ~/spullara/mustache.java - parallelism: 1 - shell: /bin/bash --login - # CircleCI 2.0 does not support environment variables that refer to each other the same way as 1.0 did. - # If any of these refer to each other, rewrite them so that they don't or see https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables . - environment: - CIRCLE_ARTIFACTS: /tmp/circleci-artifacts - CIRCLE_TEST_REPORTS: /tmp/circleci-test-results - # In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packages. - # In CircleCI 2.0 you can now specify your own image, or use one of our pre-configured images. - # The following configuration line tells CircleCI to use the specified docker image as the runtime environment for you job. - # We have selected a pre-built image that mirrors the build environment we use on - # the 1.0 platform, but we recommend you choose an image more tailored to the needs - # of each job. For more information on choosing an image (or alternatively using a - # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/ - # To see the list of pre-built images that CircleCI provides for most common languages see - # https://circleci.com/docs/2.0/circleci-images/ - docker: - - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37 - command: /sbin/init - steps: - # Machine Setup - # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each - # The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out. - - checkout - # Prepare for artifact and test results collection equivalent to how it was done on 1.0. - # In many cases you can simplify this from what is generated here. - # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' - - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS - # This is based on your 1.0 configuration file or project settings - - run: - working_directory: ~/spullara/mustache.java - command: sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/jdk1.8.0/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/jdk1.8.0" >> $BASH_ENV - # Dependencies - # This would typically go in either a build or a build-and-test job when using workflows - # Restore the dependency cache - - restore_cache: - keys: - # This branch if available - - v1-dep-{{ .Branch }}- - # Default branch if not - - v1-dep-master- - # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly - - v1-dep- - # This is based on your 1.0 configuration file or project settings - - run: mvn install -DskipTests - # Save dependency cache - - save_cache: - key: v1-dep-{{ .Branch }}-{{ epoch }} - paths: - # This is a broad list of cache paths to include many possible development environments - # You can probably delete some of these entries - - vendor/bundle - - ~/virtualenvs - - ~/.m2 - - ~/.ivy2 - - ~/.bundle - - ~/.go_workspace - - ~/.gradle - - ~/.cache/bower - # Test - # This would typically be a build job when using workflows, possibly combined with build - # This is based on your 1.0 configuration file or project settings - - run: mvn test - # This is based on your 1.0 configuration file or project settings - - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ - - run: find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \; - # Teardown - # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each - # Save test results - - store_test_results: - path: /tmp/circleci-test-results - # Save artifacts - - store_artifacts: - path: /tmp/circleci-artifacts - - store_artifacts: - path: /tmp/circleci-test-results diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 1e03bf9b2..000000000 --- a/circle.yml +++ /dev/null @@ -1,12 +0,0 @@ -dependencies: - override: - - mvn install -DskipTests -test: - override: - - mvn test - post: - - mkdir -p $CIRCLE_TEST_REPORTS/junit/ - - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \; -machine: - java: - version: oraclejdk8 diff --git a/handlebar/pom.xml b/handlebar/pom.xml deleted file mode 100644 index 8d998eab6..000000000 --- a/handlebar/pom.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - com.github.spullara.mustache.java - mustache.java - 0.9.9-SNAPSHOT - - 4.0.0 - - com.github.spullara.mustache.java - handlebar - bundle - - handlebar - http://maven.apache.org - - - - - com.github.spullara.cli-parser - cli-parser - 1.0 - - - com.github.spullara.mustache.java - compiler - 0.9.9-SNAPSHOT - - - com.fasterxml.jackson.core - jackson-core - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-databind - ${jackson.version} - - - - - org.eclipse.jetty - jetty-server - 9.4.12.v20180830 - - - - - junit - junit - 4.8.1 - test - - - - - - - org.apache.felix - maven-bundle-plugin - - - - - - - - maven-assembly-plugin - - - - jar-with-dependencies - - - - com.sampullara.mustache.Handlebar - - - - - - - make-assembly - package - - attached - - - - - - - - - diff --git a/handlebar/src/main/java/com/sampullara/mustache/Handlebar.java b/handlebar/src/main/java/com/sampullara/mustache/Handlebar.java deleted file mode 100644 index 35734a63f..000000000 --- a/handlebar/src/main/java/com/sampullara/mustache/Handlebar.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.sampullara.mustache; - -import com.fasterxml.jackson.core.JsonFactory; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MappingJsonFactory; -import com.github.mustachejava.DefaultMustacheFactory; -import com.github.mustachejava.Mustache; -import com.github.mustachejava.MustacheFactory; -import com.github.mustachejava.TemplateFunction; -import com.sampullara.cli.Args; -import com.sampullara.cli.Argument; -import org.eclipse.jetty.server.Handler; -import org.eclipse.jetty.server.Request; -import org.eclipse.jetty.server.Server; -import org.eclipse.jetty.server.handler.AbstractHandler; - -import javax.activation.FileTypeMap; -import javax.activation.MimetypesFileTypeMap; -import javax.servlet.ServletException; -import javax.servlet.ServletOutputStream; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.BufferedReader; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.PrintWriter; -import java.io.StringWriter; -import java.io.UnsupportedEncodingException; -import java.nio.file.Files; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.function.Function; - -/** - * Run a local server and merge .js and .html files using mustache. - * - * User: sam Date: Jun 15, 2010 Time: 4:25:31 PM - */ -public class Handlebar { - - @Argument(alias = "p") - private static Integer port = 8000; - - @Argument(alias = "d", required = true) - private static String dir; - - @Argument(alias = "m") - private static String mocks; - - private static File rootDir; - - private static final FileTypeMap FILE_TYPE_MAP; - - private static final JsonFactory JSON_FACTORY = new MappingJsonFactory(); - - static { - FILE_TYPE_MAP = loadFileTypeMapFromContextSupportModule(); - } - - private static FileTypeMap loadFileTypeMapFromContextSupportModule() { - // see if we can find the extended mime.types from the context-support module - InputStream is = ClassLoader.getSystemResourceAsStream("com/sampullara/mustache/mimes.txt"); - if (null != is) { - return new MimetypesFileTypeMap(is); - } - return FileTypeMap.getDefaultFileTypeMap(); - } - - public static Object toObject(final JsonNode node) { - if (node.isArray()) { - return new ArrayList() { - { - for (JsonNode jsonNodes : node) { - add(toObject(jsonNodes)); - } - } - }; - } else if (node.isObject()) { - return new HashMap() { - { - for (Iterator> i = node.fields(); i.hasNext();) { - Map.Entry next = i.next(); - Object o = toObject(next.getValue()); - put(next.getKey(), o); - } - } - }; - } else if (node.isBoolean()) { - return node.booleanValue(); - } else if (node.isNull()) { - return null; - } else { - return node.asText(); - } - } - - - public static void main(String[] args) throws Exception { - try { - Args.parse(Handlebar.class, args); - } catch (IllegalArgumentException e) { - Args.usage(Handlebar.class); - System.exit(1); - } - - rootDir = new File(dir); - if (null == mocks) mocks = dir; - - Handler handler = new AbstractHandler() { - public void handle(String s, Request r, HttpServletRequest req, HttpServletResponse res) - throws IOException, ServletException { - try { - String pathInfo = req.getPathInfo(); - if (pathInfo.endsWith("/")) pathInfo += "index.html"; - - // obtain mime type - String mimeType = FILE_TYPE_MAP.getContentType(pathInfo); - System.out.println(String.format("%s: %s", mimeType, pathInfo)); - - // create a handle to the resource - File staticres = new File(rootDir, pathInfo.substring(1)); - - res.setContentType(mimeType == null ? "text/html" : mimeType); - res.setCharacterEncoding("utf-8"); - if (mimeType == null || mimeType.equals("text/html")) { - - // Handle like a template - String filename = pathInfo.substring(1); - - // check if file exists - if (!staticres.exists()) { - res.setStatus(HttpServletResponse.SC_NOT_FOUND); - processTemplate(req, res, "404.html"); - } else { - res.setStatus(HttpServletResponse.SC_OK); - processTemplate(req, res, filename); - } - - r.setHandled(true); - } else { - if (!staticres.exists()) { - res.setStatus(HttpServletResponse.SC_NOT_FOUND); - return; - } - - // Handle like a file - res.setStatus(HttpServletResponse.SC_OK); - ServletOutputStream out = res.getOutputStream(); - Files.copy(staticres.toPath(), out); - out.close(); - r.setHandled(true); - } - } catch (Exception e) { - // params - Map params = new HashMap(); - StringWriter out = new StringWriter(); - PrintWriter pw = new PrintWriter(out); - e.printStackTrace(pw); - pw.close(); - params.put("stacktrace", out.toString()); - - // render template - res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); - processTemplate(req, res, "500.html", params); - - r.setHandled(true); - } - } - - private void processTemplate(HttpServletRequest req, HttpServletResponse res, - String filename, Object... scopes) throws UnsupportedEncodingException, - FileNotFoundException, IOException, JsonParseException, JsonProcessingException { - - if (!new File(rootDir, filename).exists()) { - System.out.println("template not found, skipping: " + filename); - return; - } - - MustacheFactory mc = new DefaultMustacheFactory(rootDir); - Mustache mustache = mc.compile(filename); - - String base = filename.substring(0, filename.lastIndexOf(".")); - File file = new File(mocks, base + ".json"); - Map parameters = new HashMap(req.getParameterMap()) { - @Override - public Object get(Object o) { - Object result = super.get(o); // To change body of overridden methods use File | - // Settings | File Templates. - if (result instanceof String[]) { - String[] strings = (String[]) result; - if (strings.length == 1) { - return strings[0]; - } - } - return result; - } - }; - - List scs = new ArrayList(); - if (null != scopes) scs.addAll(Arrays.asList(scopes)); - scs.add(parameters); - - scs.add(new Object() { - Function slots = new TemplateFunction() { - @Override - public String apply(String input) { - return "{{>" + input.trim() + "}}"; - } - }; - }); - - if (file.exists()) { - BufferedReader br = - new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8")); - JsonParser parser = JSON_FACTORY.createParser(br); - JsonNode json = parser.readValueAsTree(); - br.close(); - scs.add(0, toObject(json)); - } - mustache.execute(res.getWriter(), scs.toArray()); - } - - private String simpleEscape(String string) { - return string.replace("&", "&").replace("<", "<").replace(">", ">"); - } - }; - - Server server = new Server(port); - server.setHandler(handler); - server.start(); - } -} diff --git a/handlebar/src/main/resources/com/sampullara/mustache/mimes.txt b/handlebar/src/main/resources/com/sampullara/mustache/mimes.txt deleted file mode 100644 index 7931b95ab..000000000 --- a/handlebar/src/main/resources/com/sampullara/mustache/mimes.txt +++ /dev/null @@ -1,327 +0,0 @@ -################################################################################ -# Copyright 2002-2010 the original author or authors. -# -# 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. -################################################################################ - -################################################################################ -# -# Defaults for the Java Activation Framework -# Additional extensions registered in this file: -# text/plain java c c++ pl cc h -# -################################################################################ - -text/html html htm HTML HTM -text/plain txt text TXT TEXT java c c++ pl cc h -image/gif gif GIF -image/ief ief -image/jpeg jpeg jpg jpe JPG -image/tiff tiff tif -image/x-xwindowdump xwd -application/postscript ai eps ps -application/rtf rtf -application/x-tex tex -application/x-texinfo texinfo texi -application/x-troff t tr roff -audio/basic au -audio/midi midi mid -audio/x-aifc aifc -audio/x-aiff aif aiff -audio/x-mpeg mpeg mpg -audio/x-wav wav -video/mpeg mpeg mpg mpe -video/quicktime qt mov -video/x-msvideo avi - -################################################################################ -# -# Additional file types adapted from -# http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html -# kindly re-licensed to Apache Software License 2.0 by Ian Graham. -# -################################################################################ - -# TEXT TYPES - -text/x-speech talk -text/css css -text/csv csv - -# IMAGE TYPES -# icon -image/x-icon ico -# X-Windows bitmap (b/w) -image/x-xbitmap xbm -# X-Windows pixelmap (8-bit color) -image/x-xpixmap xpm -# Portable Network Graphics -image/x-png png -# Image Exchange Format (RFC 1314) -image/ief ief -# JPEG -image/jpeg jpeg jpg jpe -# RGB -image/rgb rgb -# Group III Fax (RFC 1494) -image/g3fax g3f -# X Windowdump format -image/x-xwindowdump xwd -# Macintosh PICT format -image/x-pict pict -# PPM (UNIX PPM package) -image/x-portable-pixmap ppm -# PGM (UNIX PPM package) -image/x-portable-graymap pgm -# PBM (UNIX PPM package) -image/x-portable-bitmap pbm -# PNM (UNIX PPM package) -image/x-portable-anymap pnm -# Microsoft Windows bitmap -image/x-ms-bmp bmp -# CMU raster -image/x-cmu-raster ras -# Kodak Photo-CD -image/x-photo-cd pcd -# Computer Graphics Metafile -image/cgm cgm -# CALS Type 1 or 2 -image/x-cals mil cal -# Fractal Image Format (Iterated Systems) -image/fif fif -# QuickSilver active image (Micrografx) -image/x-mgx-dsf dsf -# CMX vector image (Corel) -image/x-cmx cmx -# Wavelet-compressed (Summus) -image/wavelet wi -# AutoCad Drawing (SoftSource) -image/vnd.dwg dwg -# AutoCad DXF file (SoftSource) -image/vnd.dxf dxf -# Simple Vector Format (SoftSource) -image/vnd.svf svf - -# AUDIO/VOICE/MUSIC RELATED TYPES - -# """basic""audio - 8-bit u-law PCM" -audio/basic au snd -# Macintosh audio format (AIpple) -audio/x-aiff aif aiff aifc -# Microsoft audio -audio/x-wav wav -# MPEG audio -audio/x-mpeg mpa abs mpega -# MPEG-2 audio -audio/x-mpeg-2 mp2a mpa2 -# compressed speech (Echo Speech Corp.) -audio/echospeech es -# Toolvox speech audio (Voxware) -audio/voxware vox -# RapidTransit compressed audio (Fast Man) -application/fastman lcc -# Realaudio (Progressive Networks) -application/x-pn-realaudio ra ram -# MIDI music data -x-music/x-midi mmid -# Koan music data (SSeyo) -application/vnd.koan skp -# Speech synthesis data (MVP Solutions) -text/x-speech talk - -# VIDEO TYPES - -# MPEG video -video/mpeg mpeg mpg mpe -# MPEG-2 video -video/mpeg-2 mpv2 mp2v -# Macintosh Quicktime -video/quicktime qt mov -# Microsoft video -video/x-msvideo avi -# SGI Movie format -video/x-sgi-movie movie -# VDOlive streaming video (VDOnet) -video/vdo vdo -# Vivo streaming video (Vivo software) -video/vnd.vivo viv - -# SPECIAL HTTP/WEB APPLICATION TYPES - -# Proxy autoconfiguration (Netscape browsers) -application/x-ns-proxy-autoconfig pac -# Netscape Cooltalk chat data (Netscape) -x-conference/x-cooltalk ice - -# TEXT-RELATED - -# PostScript -application/postscript ai eps ps -# Microsoft Rich Text Format -application/rtf rtf -# Adobe Acrobat PDF -application/pdf pdf -# Maker Interchange Format (FrameMaker) -application/vnd.mif mif -# Troff document -application/x-troff t tr roff -# Troff document with MAN macros -application/x-troff-man man -# Troff document with ME macros -application/x-troff-me me -# Troff document with MS macros -application/x-troff-ms ms -# LaTeX document -application/x-latex latex -# Tex/LateX document -application/x-tex tex -# GNU TexInfo document -application/x-texinfo texinfo texi -# TeX dvi format -application/x-dvi dvi -# MS word document -application/msword doc DOC -# Office Document Architecture -application/oda oda -# Envoy Document -application/envoy evy - -# ARCHIVE/COMPRESSED ARCHIVES - -# Gnu tar format -application/x-gtar gtar -# 4.3BSD tar format -application/x-tar tar -# POSIX tar format -application/x-ustar ustar -# Old CPIO format -application/x-bcpio bcpio -# POSIX CPIO format -application/x-cpio cpio -# UNIX sh shell archive -application/x-shar shar -# DOS/PC - Pkzipped archive -application/zip zip -# Macintosh Binhexed archive -application/mac-binhex40 hqx -# Macintosh Stuffit Archive -application/x-stuffit sit sea -# Fractal Image Format -application/fractals fif -# "Binary UUencoded" -application/octet-stream bin uu -# PC executable -application/octet-stream exe -# "WAIS ""sources""" -application/x-wais-source src wsrc -# NCSA HDF data format -application/hdf hdf - -# DOWNLOADABLE PROGRAM/SCRIPTS - -# Javascript program -text/javascript js ls mocha -# UNIX bourne shell program -application/x-sh sh -# UNIX c-shell program -application/x-csh csh -# Perl program -application/x-perl pl -# Tcl (Tool Control Language) program -application/x-tcl tcl - -# ANIMATION/MULTIMEDIA - -# FutureSplash vector animation (FutureWave) -application/futuresplash spl -# mBED multimedia data (mBED) -application/mbedlet mbd -# PowerMedia multimedia (RadMedia) -application/x-rad-powermedia rad - -# PRESENTATION - -# PowerPoint presentation (Microsoft) -application/mspowerpoint ppz -# ASAP WordPower (Software Publishing Corp.) -application/x-asap asp -# Astound Web Player multimedia data (GoldDisk) -application/astound asn - -# SPECIAL EMBEDDED OBJECT - -# OLE script e.g. Visual Basic (Ncompass) -application/x-olescript axs -# OLE Object (Microsoft/NCompass) -application/x-oleobject ods -# OpenScape OLE/OCX objects (Business@Web) -x-form/x-openscape opp -# Visual Basic objects (Amara) -application/x-webbasic wba -# Specialized data entry forms (Alpha Software) -application/x-alpha-form frm -# client-server objects (Wayfarer Communications) -x-script/x-wfxclient wfx - -# GENERAL APPLICATIONS - -# Undefined binary data (often executable progs) -application/octet-stream exe com -# Pointcast news data (Pointcast) -application/x-pcn pcn -# Excel spreadsheet (Microsoft) -application/vnd.ms-excel xls -# PowerPoint (Microsoft) -application/vnd.ms-powerpoint ppt -# Microsoft Project (Microsoft) -application/vnd.ms-project mpp -# SourceView document (Dataware Electronics) -application/vnd.svd svd -# Net Install - software install (20/20 Software) -application/x-net-install ins -# Carbon Copy - remote control/access (Microcom) -application/ccv ccv -# Spreadsheets (Visual Components) -workbook/formulaone vts - -# 2D/3D DATA/VIRTUAL REALITY TYPES - -# VRML data file -x-world/x-vrml wrl vrml -# WIRL - VRML data (VREAM) -x-world/x-vream vrw -# Play3D 3d scene data (Play3D) -application/x-p3d p3d -# Viscape Interactive 3d world data (Superscape) -x-world/x-svr svr -# WebActive 3d data (Plastic Thought) -x-world/x-wvr wvr -# QuickDraw3D scene data (Apple) -x-world/x-3dmf 3dmf - -# SCIENTIFIC/MATH/CAD TYPES - -# Mathematica notebook -application/mathematica ma -# Computational meshes for numerical simulations -x-model/x-mesh msh -# Vis5D 5-dimensional data -application/vis5d v5d -# IGES models -- CAD/CAM (CGM) data -application/iges igs -# Autocad WHIP vector drawings -drawing/x-dwf dwf - -# Common mustache extension -text/html mustache - diff --git a/handlebar/src/test/resources/mocks/test.json b/handlebar/src/test/resources/mocks/test.json deleted file mode 100644 index 0789fd293..000000000 --- a/handlebar/src/test/resources/mocks/test.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": "This is the title", - "header": "The table header", - "rows": [ - { - "name": "Name 1", - "data": "Data 1" - }, - { - "name": "Name 2", - "data": "Data 2" - } - ] -} \ No newline at end of file diff --git a/handlebar/src/test/resources/test.html b/handlebar/src/test/resources/test.html deleted file mode 100644 index 7726f95fb..000000000 --- a/handlebar/src/test/resources/test.html +++ /dev/null @@ -1,14 +0,0 @@ - -{{title}} - -

{{header}}

- - - - - {{#rows}} - - {{/rows}} -
NameData
{{name}}{{data}}
- - \ No newline at end of file diff --git a/javascript/pom.xml b/javascript/pom.xml deleted file mode 100644 index 6d02ef995..000000000 --- a/javascript/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - com.github.spullara.mustache.java - mustache.java - 0.9.9-SNAPSHOT - - 4.0.0 - - javascript - - - - com.github.spullara.mustache.java - compiler - 0.9.9-SNAPSHOT - - - junit - junit - 4.12 - test - - - com.github.spullara.mustache.java - compiler - 0.9.9-SNAPSHOT - tests - test - - - com.fasterxml.jackson.core - jackson-databind - ${jackson.version} - test - - - \ No newline at end of file diff --git a/javascript/src/main/java/com/github/mustachejava/JavascriptObjectHandler.java b/javascript/src/main/java/com/github/mustachejava/JavascriptObjectHandler.java deleted file mode 100644 index c2fe171ba..000000000 --- a/javascript/src/main/java/com/github/mustachejava/JavascriptObjectHandler.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.github.mustachejava; - -import com.github.mustachejava.reflect.ReflectionObjectHandler; -import jdk.nashorn.api.scripting.JSObject; - -import java.util.ArrayList; -import java.util.Map; - -/** - * Uses Nashorn to support Javascript scope objects - */ -public class JavascriptObjectHandler extends ReflectionObjectHandler { - @Override - public String stringify(Object object) { - if (object instanceof JSObject) { - final JSObject jso = (JSObject) object; - if (jso.isFunction()) { - Object call = jso.call(jso); - return stringify(coerce(call)); - } - } - return super.stringify(object); - } - - @Override - public Object coerce(Object object) { - if (object instanceof JSObject) { - final JSObject jso = (JSObject) object; - if (jso.isFunction()) { - return new TemplateFunction() { - @Override - public String apply(String s) { - Object call = jso.call(jso, s); - return call == null ? null : call.toString(); - } - }; - } else if (jso.isArray()) { - // Let's see what it is really. Maybe it is a list. - return new ArrayList(((Map) jso).values()); - } - } - return super.coerce(object); - } -} diff --git a/javascript/src/test/java/com/github/mustachejava/JavascriptObjectHandlerTest.java b/javascript/src/test/java/com/github/mustachejava/JavascriptObjectHandlerTest.java deleted file mode 100644 index a40a4004d..000000000 --- a/javascript/src/test/java/com/github/mustachejava/JavascriptObjectHandlerTest.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.github.mustachejava; - -import com.github.mustachejavabenchmarks.Tweet; -import org.junit.BeforeClass; -import org.junit.Test; - -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import javax.script.ScriptException; -import java.io.*; -import java.util.ArrayList; -import java.util.List; - -import static org.junit.Assert.assertEquals; - -/** - * Created by sam on 3/11/15. - */ -public class JavascriptObjectHandlerTest { - - private static ScriptEngine se; - - @BeforeClass - public static void setup() { - ScriptEngineManager sem = new ScriptEngineManager(); - se = sem.getEngineByName("nashorn"); - } - - @Test - public void testSimple() throws ScriptException, IOException { - MustacheFactory mf = new DefaultMustacheFactory(); - Mustache m = mf.compile(new StringReader("{{name}}"), "test"); - StringWriter sw = new StringWriter(); - Object eval = se.eval("var name = \"sam\"; this;"); - m.execute(sw, eval).close(); - assertEquals("sam", sw.toString()); - } - - @Test - public void testFunction() throws ScriptException, IOException { - DefaultMustacheFactory mf = new DefaultMustacheFactory(); - mf.setObjectHandler(new JavascriptObjectHandler()); - Mustache m = mf.compile(new StringReader("{{#f}}name{{/f}}{{value}}"), "test"); - StringWriter sw = new StringWriter(); - Object eval = se.eval("var name = \"sam\"; " + - "var value = function() { return 'pullara'; };" + - "function f(s) { return '{{' + s + '}}'; };" + - "this;"); - m.execute(sw, eval).close(); - assertEquals("sampullara", sw.toString()); - } - - @Test - public void testTweet() throws IOException, ScriptException { - File file = new File("src/test/resources"); - File root = new File(file, "simple.html").exists() ? file : new File("../src/test/resources"); - DefaultMustacheFactory mf = new DefaultMustacheFactory(root); - mf.setObjectHandler(new JavascriptObjectHandler()); - InputStream json = getClass().getClassLoader().getResourceAsStream("hogan.json"); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - byte[] bytes = new byte[1024]; - int read; - while ((read = json.read(bytes)) != -1) { - baos.write(bytes, 0, read); - } - Object scope = se.eval("var tweet = " + new String(baos.toByteArray()) + "; " + - "var tweets = []; for (var i = 0; i < 50; i++) { tweets.push(tweet); };" + - "this;"); - StringWriter sw = new StringWriter(); - Mustache m = mf.compile("timeline.mustache"); - m.execute(sw, scope).close(); - - StringWriter sw2 = new StringWriter(); - final List list = new ArrayList(); - for (int i = 0; i < 50 ; i++) { - list.add(new Tweet()); - } - m.execute(sw2, new Object() { - List tweets = list; - }).close(); - assertEquals(sw2.toString(), sw.toString()); - } -} diff --git a/javascript/src/test/java/com/github/mustachejavabenchmarks/JavascriptInterpreterTest.java b/javascript/src/test/java/com/github/mustachejavabenchmarks/JavascriptInterpreterTest.java deleted file mode 100644 index e139ca913..000000000 --- a/javascript/src/test/java/com/github/mustachejavabenchmarks/JavascriptInterpreterTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.github.mustachejavabenchmarks; - -import com.github.mustachejava.DefaultMustacheFactory; -import com.github.mustachejava.JavascriptObjectHandler; - -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import javax.script.ScriptException; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; - -public class JavascriptInterpreterTest extends JsonInterpreterTest { - @Override - protected Object getScope() throws IOException { - ScriptEngineManager sem = new ScriptEngineManager(); - ScriptEngine se = sem.getEngineByName("nashorn"); - InputStream json = getClass().getClassLoader().getResourceAsStream("hogan.json"); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - byte[] bytes = new byte[1024]; - int read; - while ((read = json.read(bytes)) != -1) { - baos.write(bytes, 0, read); - } - try { - return se.eval("var tweet = " + new String(baos.toByteArray()) + "; " + - "var tweets = []; for (var i = 0; i < 50; i++) { tweets.push(tweet); };" + - "this;"); - } catch (ScriptException e) { - throw new RuntimeException(e); - } - } - - @Override - protected DefaultMustacheFactory createMustacheFactory() { - DefaultMustacheFactory mustacheFactory = new DefaultMustacheFactory(root); - mustacheFactory.setObjectHandler(new JavascriptObjectHandler()); - return mustacheFactory; - } -} diff --git a/pom.xml b/pom.xml index 937f53e67..781d453d3 100644 --- a/pom.xml +++ b/pom.xml @@ -9,8 +9,6 @@ compiler - javascript - handlebar mustache-maven-plugin scala-extensions benchmarks diff --git a/src/test/resources/array_of_strings.html b/src/test/resources/array_of_strings.html deleted file mode 100644 index ab058c437..000000000 --- a/src/test/resources/array_of_strings.html +++ /dev/null @@ -1,2 +0,0 @@ -{{%IMPLICIT-ITERATOR}} -{{#array_of_strings}} {{.}} {{/array_of_strings}} \ No newline at end of file diff --git a/src/test/resources/array_of_strings.js b/src/test/resources/array_of_strings.js deleted file mode 100644 index 12c499236..000000000 --- a/src/test/resources/array_of_strings.js +++ /dev/null @@ -1 +0,0 @@ -var array_of_strings = {array_of_strings: ['hello', 'world']}; diff --git a/src/test/resources/array_of_strings.txt b/src/test/resources/array_of_strings.txt deleted file mode 100644 index 4a1f4754c..000000000 --- a/src/test/resources/array_of_strings.txt +++ /dev/null @@ -1 +0,0 @@ -hello world diff --git a/src/test/resources/array_of_strings_options.html b/src/test/resources/array_of_strings_options.html deleted file mode 100644 index 87fbf5e2e..000000000 --- a/src/test/resources/array_of_strings_options.html +++ /dev/null @@ -1,2 +0,0 @@ -{{%IMPLICIT-ITERATOR iterator=rob}} -{{#array_of_strings_options}} {{rob}} {{/array_of_strings_options}} \ No newline at end of file diff --git a/src/test/resources/array_of_strings_options.js b/src/test/resources/array_of_strings_options.js deleted file mode 100644 index 2e29adffb..000000000 --- a/src/test/resources/array_of_strings_options.js +++ /dev/null @@ -1 +0,0 @@ -var array_of_strings_options = {array_of_strings_options: ['hello', 'world']}; diff --git a/src/test/resources/array_of_strings_options.txt b/src/test/resources/array_of_strings_options.txt deleted file mode 100644 index 4a1f4754c..000000000 --- a/src/test/resources/array_of_strings_options.txt +++ /dev/null @@ -1 +0,0 @@ -hello world diff --git a/src/test/resources/array_partial.2.html b/src/test/resources/array_partial.2.html deleted file mode 100644 index 80d1d09f3..000000000 --- a/src/test/resources/array_partial.2.html +++ /dev/null @@ -1,6 +0,0 @@ -Here's a non-sense array of values - -{{%IMPLICIT-ITERATOR}} -{{#array}} - {{.}} -{{/array}} \ No newline at end of file diff --git a/src/test/resources/array_partial.html b/src/test/resources/array_partial.html deleted file mode 100644 index 7a336fee8..000000000 --- a/src/test/resources/array_partial.html +++ /dev/null @@ -1 +0,0 @@ -{{>partial}} \ No newline at end of file diff --git a/src/test/resources/array_partial.js b/src/test/resources/array_partial.js deleted file mode 100644 index 88d759225..000000000 --- a/src/test/resources/array_partial.js +++ /dev/null @@ -1,5 +0,0 @@ -var partial_context = { - partial: { - array: ['1', '2', '3', '4'] - } -}; \ No newline at end of file diff --git a/src/test/resources/array_partial.txt b/src/test/resources/array_partial.txt deleted file mode 100644 index a604ac2be..000000000 --- a/src/test/resources/array_partial.txt +++ /dev/null @@ -1,8 +0,0 @@ -Here's a non-sense array of values - - -1 -2 -3 -4 - diff --git a/src/test/resources/brokensimple.html b/src/test/resources/brokensimple.html deleted file mode 100644 index 051127782..000000000 --- a/src/test/resources/brokensimple.html +++ /dev/null @@ -1,2 +0,0 @@ -Hello {{name}} -You have just won ${{value \ No newline at end of file diff --git a/src/test/resources/comments.html b/src/test/resources/comments.html deleted file mode 100644 index 503680186..000000000 --- a/src/test/resources/comments.html +++ /dev/null @@ -1 +0,0 @@ -

{{title}}{{! just something interesting... or not... }}

diff --git a/src/test/resources/comments.js b/src/test/resources/comments.js deleted file mode 100644 index f85f97925..000000000 --- a/src/test/resources/comments.js +++ /dev/null @@ -1,5 +0,0 @@ -var comments = { - title: function() { - return "A Comedy of Errors"; - } -}; diff --git a/src/test/resources/comments.txt b/src/test/resources/comments.txt deleted file mode 100644 index 0133517bb..000000000 --- a/src/test/resources/comments.txt +++ /dev/null @@ -1 +0,0 @@ -

A Comedy of Errors

diff --git a/src/test/resources/complex.html b/src/test/resources/complex.html deleted file mode 100644 index 11aaaded4..000000000 --- a/src/test/resources/complex.html +++ /dev/null @@ -1,19 +0,0 @@ -

{{header}}

-{{#list}} -
    - {{#item}} - {{#current}} -
  • {{name}}
  • - {{/current}} - {{#link}} -
  • {{name}}
  • - {{/link}} - {{/item}} -
-{{/list}} -{{#empty}} -

The list is empty.

-{{/empty}} -{{^empty}} -

The list is not empty.

-{{/empty}} \ No newline at end of file diff --git a/src/test/resources/complex.js b/src/test/resources/complex.js deleted file mode 100644 index a0dfb6311..000000000 --- a/src/test/resources/complex.js +++ /dev/null @@ -1,19 +0,0 @@ -var complex = { - header: function() { - return "Colors"; - }, - item: [ - {name: "red", current: true, url: "#Red"}, - {name: "green", current: false, url: "#Green"}, - {name: "blue", current: false, url: "#Blue"} - ], - link: function() { - return this["current"] !== true; - }, - list: function() { - return this.item.length !== 0; - }, - empty: function() { - return this.item.length === 0; - } -}; diff --git a/src/test/resources/complex.txt b/src/test/resources/complex.txt deleted file mode 100644 index a1632f232..000000000 --- a/src/test/resources/complex.txt +++ /dev/null @@ -1,7 +0,0 @@ -

Colors

- -

The list is not empty.

diff --git a/src/test/resources/deferred.html b/src/test/resources/deferred.html deleted file mode 100644 index a087a86ab..000000000 --- a/src/test/resources/deferred.html +++ /dev/null @@ -1,7 +0,0 @@ - -{{title}} - -{{>deferredpartial}} -{{{deferred}}} - - \ No newline at end of file diff --git a/src/test/resources/deferred.txt b/src/test/resources/deferred.txt deleted file mode 100644 index 949dc012d..000000000 --- a/src/test/resources/deferred.txt +++ /dev/null @@ -1,7 +0,0 @@ - -Deferred - -
- - - \ No newline at end of file diff --git a/src/test/resources/deferredpartial.html b/src/test/resources/deferredpartial.html deleted file mode 100644 index 704d58156..000000000 --- a/src/test/resources/deferredpartial.html +++ /dev/null @@ -1,4 +0,0 @@ -I am calculated -"later" and divs -are written out < -now \ No newline at end of file diff --git a/src/test/resources/delimiters.html b/src/test/resources/delimiters.html deleted file mode 100644 index a73e061ff..000000000 --- a/src/test/resources/delimiters.html +++ /dev/null @@ -1,7 +0,0 @@ -{{=<% %>=}}* -<% first %> -* <% second %> -<%=| |=%> -* | third | -|={{ }}=| -* {{ fourth }} \ No newline at end of file diff --git a/src/test/resources/delimiters.js b/src/test/resources/delimiters.js deleted file mode 100644 index 220d0d295..000000000 --- a/src/test/resources/delimiters.js +++ /dev/null @@ -1,6 +0,0 @@ -var delimiters = { - first: "It worked the first time.", - second: "And it worked the second time.", - third: "Then, surprisingly, it worked the third time.", - fourth: "Fourth time also fine!." -} diff --git a/src/test/resources/delimiters.txt b/src/test/resources/delimiters.txt deleted file mode 100644 index 698a6bbd0..000000000 --- a/src/test/resources/delimiters.txt +++ /dev/null @@ -1,5 +0,0 @@ -* -It worked the first time. -* And it worked the second time. -* Then, surprisingly, it worked the third time. -* Fourth time also fine!. diff --git a/src/test/resources/empty_partial.2.html b/src/test/resources/empty_partial.2.html deleted file mode 100644 index b920295f6..000000000 --- a/src/test/resources/empty_partial.2.html +++ /dev/null @@ -1 +0,0 @@ -yo \ No newline at end of file diff --git a/src/test/resources/empty_partial.html b/src/test/resources/empty_partial.html deleted file mode 100644 index a71004703..000000000 --- a/src/test/resources/empty_partial.html +++ /dev/null @@ -1,2 +0,0 @@ -hey {{foo}} -{{>partial}} diff --git a/src/test/resources/empty_partial.js b/src/test/resources/empty_partial.js deleted file mode 100644 index 9cc53c6b4..000000000 --- a/src/test/resources/empty_partial.js +++ /dev/null @@ -1,3 +0,0 @@ -var partial_context = { - foo: 1 -}; diff --git a/src/test/resources/empty_partial.txt b/src/test/resources/empty_partial.txt deleted file mode 100644 index 90d2b9fb5..000000000 --- a/src/test/resources/empty_partial.txt +++ /dev/null @@ -1,2 +0,0 @@ -hey 1 -yo diff --git a/src/test/resources/empty_template.html b/src/test/resources/empty_template.html deleted file mode 100644 index bb2367a20..000000000 --- a/src/test/resources/empty_template.html +++ /dev/null @@ -1 +0,0 @@ -

Test

\ No newline at end of file diff --git a/src/test/resources/empty_template.js b/src/test/resources/empty_template.js deleted file mode 100644 index 564c9e2b0..000000000 --- a/src/test/resources/empty_template.js +++ /dev/null @@ -1 +0,0 @@ -var empty_template = {}; diff --git a/src/test/resources/empty_template.txt b/src/test/resources/empty_template.txt deleted file mode 100644 index 60652b692..000000000 --- a/src/test/resources/empty_template.txt +++ /dev/null @@ -1 +0,0 @@ -

Test

diff --git a/src/test/resources/error_not_found.html b/src/test/resources/error_not_found.html deleted file mode 100644 index 24369f73a..000000000 --- a/src/test/resources/error_not_found.html +++ /dev/null @@ -1 +0,0 @@ -{{foo}} \ No newline at end of file diff --git a/src/test/resources/error_not_found.js b/src/test/resources/error_not_found.js deleted file mode 100644 index 6cdbdb304..000000000 --- a/src/test/resources/error_not_found.js +++ /dev/null @@ -1 +0,0 @@ -var error_not_found = {bar: 2}; \ No newline at end of file diff --git a/src/test/resources/error_not_found.txt b/src/test/resources/error_not_found.txt deleted file mode 100644 index 8b1378917..000000000 --- a/src/test/resources/error_not_found.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/test/resources/escaped.html b/src/test/resources/escaped.html deleted file mode 100644 index ea2595198..000000000 --- a/src/test/resources/escaped.html +++ /dev/null @@ -1,2 +0,0 @@ -

{{title}}

-But not {{entities}}. diff --git a/src/test/resources/escaped.js b/src/test/resources/escaped.js deleted file mode 100644 index 7a8baef77..000000000 --- a/src/test/resources/escaped.js +++ /dev/null @@ -1,6 +0,0 @@ -var escaped = { - title: function() { - return "Bear > Shark"; - }, - entities: """ -}; diff --git a/src/test/resources/escaped.txt b/src/test/resources/escaped.txt deleted file mode 100644 index 73ac5ce13..000000000 --- a/src/test/resources/escaped.txt +++ /dev/null @@ -1,2 +0,0 @@ -

Bear > Shark

-But not ". diff --git a/src/test/resources/explicitlambda.html b/src/test/resources/explicitlambda.html deleted file mode 100644 index df3a9db59..000000000 --- a/src/test/resources/explicitlambda.html +++ /dev/null @@ -1,2 +0,0 @@ -

{{_translate}}Hello{{/translate}}

-

{{_translate}}Hola{{/translate}}

\ No newline at end of file diff --git a/src/test/resources/explicitlambda.txt b/src/test/resources/explicitlambda.txt deleted file mode 100644 index d0d515a87..000000000 --- a/src/test/resources/explicitlambda.txt +++ /dev/null @@ -1,2 +0,0 @@ -

Hola

-

Hello

\ No newline at end of file diff --git a/src/test/resources/higher_order_sections.html b/src/test/resources/higher_order_sections.html deleted file mode 100644 index 04f5318df..000000000 --- a/src/test/resources/higher_order_sections.html +++ /dev/null @@ -1 +0,0 @@ -{{#bolder}}Hi {{name}}.{{/bolder}} diff --git a/src/test/resources/higher_order_sections.js b/src/test/resources/higher_order_sections.js deleted file mode 100644 index c7e558e1f..000000000 --- a/src/test/resources/higher_order_sections.js +++ /dev/null @@ -1,9 +0,0 @@ -var higher_order_sections = { - "name": "Tater", - "helper": "To tinker?", - "bolder": function() { - return function(text, render) { - return "" + render(text) + ' ' + this.helper; - } - } -} \ No newline at end of file diff --git a/src/test/resources/higher_order_sections.txt b/src/test/resources/higher_order_sections.txt deleted file mode 100644 index 9db786aad..000000000 --- a/src/test/resources/higher_order_sections.txt +++ /dev/null @@ -1 +0,0 @@ -Hi Tater. To tinker? diff --git a/src/test/resources/i18n.html b/src/test/resources/i18n.html deleted file mode 100644 index c87a2a6e6..000000000 --- a/src/test/resources/i18n.html +++ /dev/null @@ -1,8 +0,0 @@ -你好 {{name}} -你赚了 ${{value}}! - - {{#test}} - {{/test}} -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes.{{fred}} -{{/in_ca}} \ No newline at end of file diff --git a/src/test/resources/i18n.txt b/src/test/resources/i18n.txt deleted file mode 100644 index 9a4a69d88..000000000 --- a/src/test/resources/i18n.txt +++ /dev/null @@ -1,4 +0,0 @@ -你好 Chris -你赚了 $10000! - -Well, $6000, after taxes. diff --git a/src/test/resources/ibis-1107586786643355109.html b/src/test/resources/ibis-1107586786643355109.html deleted file mode 100644 index 40e44685c..000000000 --- a/src/test/resources/ibis-1107586786643355109.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Twitter - -
- - - - - -
-

- Hey - - XXXXXXXX - @XXXXXX, Twitter has - suggestions for you! -

-
- - - - - -
- Did you know that Twitter generates personalized Who To Follow suggestions for - you? Following the ones you like will help you stay informed on what matters the - most to you today and discover what might matter to you tomorrow. -
- - - - - - - - - -
- -
- XXXXXXXX -
-
- @XXXXXX -
- - -
view profile →
-
-
- -
- XXXXXXX -
-
- @XXXXXX -
- - -
view profile →
-
-
- -
- XXXXXX -
-
- @XXXXXXX -
- - -
view profile →
-
-
- - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - -
- - View all suggestions for you - -
-
- - Forgot your Twitter password?
- Get - instructions on how to reset it » -
-
-
-
-
-
-
- If you'd rather not receive Twitter product or service updates, you can unsubscribe immediately. Please do not reply to this message; it was sent from an unmonitored - email address. This message is a service email related to your use of Twitter. For - general inquiries or to request support with your Twitter account, please visit us at Twitter - Support. If you received this message in error and did not sign up for a Twitter - account, click not my account. -
-
- - diff --git a/src/test/resources/ibis.html b/src/test/resources/ibis.html deleted file mode 100644 index 8315675ee..000000000 --- a/src/test/resources/ibis.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Twitter - -
- - - - - -
-

- Hey - - {{USER_NAME}} - @{{USER_SCREENNAME}}, Twitter has - suggestions for you! -

-
- - - - - -
- Did you know that Twitter generates personalized Who To Follow suggestions for - you? Following the ones you like will help you stay informed on what matters the - most to you today and discover what might matter to you tomorrow. -
- - {{^NO_SUGGESTED_USERS}} - - - - - - - - -
- -
- {{SUGGESTED_USER_1_NAME}} -
-
- @{{SUGGESTED_USER_1_SCREENNAME}} -
- - -
view profile →
-
-
- -
- {{SUGGESTED_USER_2_NAME}} -
-
- @{{SUGGESTED_USER_2_SCREENNAME}} -
- - -
view profile →
-
-
- -
- {{SUGGESTED_USER_3_NAME}} -
-
- @{{SUGGESTED_USER_3_SCREENNAME}} -
- - -
view profile →
-
-
- {{/NO_SUGGESTED_USERS}} - - - -
- - - - - - - -
- - - - - - - - - - - - - - - - - - -
- - View all suggestions for you - -
-
- - Forgot your Twitter password?
- Get - instructions on how to reset it » -
-
-
-
-
-
-
- If you'd rather not receive Twitter product or service updates, you can unsubscribe immediately. Please do not reply to this message; it was sent from an unmonitored - email address. This message is a service email related to your use of Twitter. For - general inquiries or to request support with your Twitter account, please visit us at Twitter - Support. If you received this message in error and did not sign up for a Twitter - account, click not my account. -
-
- - diff --git a/src/test/resources/ibis2/content.html.mustache b/src/test/resources/ibis2/content.html.mustache deleted file mode 100644 index d2500a36a..000000000 --- a/src/test/resources/ibis2/content.html.mustache +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - -
- - - - - - - - - - - {{>dir:content.html}} - - - {{>dir:footer}} - - - - - - - - - - -
- - Twitter - -
- -
-
-
-
- If you'd rather not receive Twitter product or service updates, you can unsubscribe immediately. Please do not reply to this message; it was sent from an unmonitored email address. This message is a service email related to your use of Twitter. For general inquiries or to request support with your Twitter account, please visit us at Twitter Support. If you received this message in error and did not sign up for a Twitter account, click not my account. -
-
- - diff --git a/src/test/resources/ibis2/modules/wtf.mustache b/src/test/resources/ibis2/modules/wtf.mustache deleted file mode 100644 index 8117e7c33..000000000 --- a/src/test/resources/ibis2/modules/wtf.mustache +++ /dev/null @@ -1,26 +0,0 @@ - - - {{#wtf}} - {{#wtf_users}} - - {{/wtf_users}} - {{/wtf}} - -
- -
- {{name}} -
-
- @{{screen_name}} -
- - -
view profile →
-
-
\ No newline at end of file diff --git a/src/test/resources/ibis2/network_digest_v1/content.html.mustache b/src/test/resources/ibis2/network_digest_v1/content.html.mustache deleted file mode 100644 index cd780480c..000000000 --- a/src/test/resources/ibis2/network_digest_v1/content.html.mustache +++ /dev/null @@ -1,38 +0,0 @@ - - - {{#top_tweets}} - {{#tweets}} - - - - - - -
- - - - -
- {{user.name}} @{{user.screen_name}} -
- -
- {{{linkified_text}}} -
- - {{retweet_count}}{{fav_count}}{{reply_count}} - {{explicit_timestamp}} - - {{{source.get}}} -
- {{/tweets}} - {{/top_tweets}} - - - {{#include_wtf}} - {{>modules:wtf}} - {{/include_wtf}} - - - \ No newline at end of file diff --git a/src/test/resources/ibis2/network_digest_v1/content.txt.mustache b/src/test/resources/ibis2/network_digest_v1/content.txt.mustache deleted file mode 100644 index 386a46f9b..000000000 --- a/src/test/resources/ibis2/network_digest_v1/content.txt.mustache +++ /dev/null @@ -1,13 +0,0 @@ -Hey {{USER_NAME}} (@{{USER_SCREENNAME}}), Twitter has suggestions for you! - -Did you know that Twitter generates personalized Who To Follow suggestions for you? Following the ones you like will help you stay informed on what matters most to you today and discover what might matter to you most tomorrow. - -Curious to know who you're missing on Twitter right now? -View all suggestions for you: {{SUGGESTED_USERS_HEADER_PLAIN}} - -Forgot your Twitter password?: {{RESET_PLAIN}} - - - -If you received this message in error and did not sign up for a Twitter account, click on the url below: -{{NOTMYACCOUNT_PLAIN}} \ No newline at end of file diff --git a/src/test/resources/ibis2/network_digest_v1/footer.mustache b/src/test/resources/ibis2/network_digest_v1/footer.mustache deleted file mode 100644 index dba68500f..000000000 --- a/src/test/resources/ibis2/network_digest_v1/footer.mustache +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
- - View all suggestions for you - -
-
- - Forgot your Twitter password?
- Get - instructions on how to reset it » -
-
- - diff --git a/src/test/resources/ibis2/network_digest_v1/subject.txt.mustache b/src/test/resources/ibis2/network_digest_v1/subject.txt.mustache deleted file mode 100644 index c03bf6db3..000000000 --- a/src/test/resources/ibis2/network_digest_v1/subject.txt.mustache +++ /dev/null @@ -1 +0,0 @@ -Discover more on Twitter diff --git a/src/test/resources/ibis2/test.html b/src/test/resources/ibis2/test.html deleted file mode 100644 index 79f5c90c4..000000000 --- a/src/test/resources/ibis2/test.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Twitter - -
- - - - - - -
- - - - -
- dick costolo @dickc -
- -
- Great end to a fantastic day in London. Cc @thisisdavina @stephenfry pic.twitter.com/HTM0JrmZ -
- - 345234123 - 03:27 PM Nov 07 - - Twitter for BlackBerry? -
- - - - - - -
- - - - -
- CalAcademyofSciences @calacademy -
- -
- Science Today Story: Science Girl Power - The recent successes of girls in science. ow.ly/1fwWD5 -
- - 345234123 - 03:35 PM Nov 07 - - HootSuite -
- - - - - - -
- - - - -
- Alton Brown @altonbrown -
- -
- Breaking radio silence to say: if you see a poster at your college regarding a lecture by me: It's a recording! -
- - 345234123 - 03:40 PM Nov 07 - - Twitter for iPhone -
- - - - - - -
- - - - -
- The Economist @TheEconomist -
- -
- Wherever Segways are allowed, someone is probably making an effort to rein in their use on safety grounds econ.st/uPiu6w -
- - 345234123 - 03:42 PM Nov 07 - - SocialFlow -
- - - - - - -
- - - - -
- USA Cycling @usacycling -
- -
- Thx to all our #webinarcontest participants! @twoupsports won this afternoon's free entry. Upcoming webinar info here: bit.ly/abkRVJ -
- - 345234123 - 03:31 PM Nov 07 - - web -
- - - - - - - - -
- -
- Gaku Ueda -
-
- @gakuueda -
- - -
view profile →
-
-
- -
- Doug Williams -
-
- @dougw -
- - -
view profile →
-
-
- -
- Fabien Penso -
-
- @fabienpenso -
- - -
view profile →
-
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - - - - -
- - View all suggestions for you - -
-
- - Forgot your Twitter password?
- Get - instructions on how to reset it » -
-
-
- -
-
-
-
- If you'd rather not receive Twitter product or service updates, you can unsubscribe immediately. Please do not reply to this message; it was sent from an unmonitored email address. This message is a service email related to your use of Twitter. For general inquiries or to request support with your Twitter account, please visit us at Twitter Support. If you received this message in error and did not sign up for a Twitter account, click not my account. -
-
- - diff --git a/src/test/resources/infinitechild.html b/src/test/resources/infinitechild.html deleted file mode 100644 index 69cd2abda..000000000 --- a/src/test/resources/infinitechild.html +++ /dev/null @@ -1 +0,0 @@ -{{>infiniteparent}} \ No newline at end of file diff --git a/src/test/resources/infiniteparent.html b/src/test/resources/infiniteparent.html deleted file mode 100644 index dda7e7e26..000000000 --- a/src/test/resources/infiniteparent.html +++ /dev/null @@ -1 +0,0 @@ -{{>infinitechild}} \ No newline at end of file diff --git a/src/test/resources/inverted_section.html b/src/test/resources/inverted_section.html deleted file mode 100644 index 311a949f5..000000000 --- a/src/test/resources/inverted_section.html +++ /dev/null @@ -1 +0,0 @@ -{{#repo}}{{name}}{{/repo}}{{^repo}}No repos :({{/repo}} diff --git a/src/test/resources/inverted_section.js b/src/test/resources/inverted_section.js deleted file mode 100644 index cb96ecfbf..000000000 --- a/src/test/resources/inverted_section.js +++ /dev/null @@ -1,3 +0,0 @@ -var inverted_section = { - "repo": [] -} diff --git a/src/test/resources/inverted_section.txt b/src/test/resources/inverted_section.txt deleted file mode 100644 index 5fd0de1c7..000000000 --- a/src/test/resources/inverted_section.txt +++ /dev/null @@ -1 +0,0 @@ -No repos :( diff --git a/src/test/resources/isempty.html b/src/test/resources/isempty.html deleted file mode 100644 index f430f7557..000000000 --- a/src/test/resources/isempty.html +++ /dev/null @@ -1,6 +0,0 @@ -{{^people.empty}} -Is not empty -{{/people.empty}} -{{#people.isEmpty}} -Is empty -{{/people.isEmpty}} diff --git a/src/test/resources/isempty.txt b/src/test/resources/isempty.txt deleted file mode 100644 index 031dc5d69..000000000 --- a/src/test/resources/isempty.txt +++ /dev/null @@ -1 +0,0 @@ -Is not empty diff --git a/src/test/resources/items.html b/src/test/resources/items.html deleted file mode 100644 index 7a1363974..000000000 --- a/src/test/resources/items.html +++ /dev/null @@ -1,7 +0,0 @@ -{{#items}} -Name: {{name}} -Price: {{price}} -{{#features}} - Feature: {{description}} -{{/features}} -{{/items}} diff --git a/src/test/resources/items.txt b/src/test/resources/items.txt deleted file mode 100644 index d8ed473fa..000000000 --- a/src/test/resources/items.txt +++ /dev/null @@ -1,8 +0,0 @@ -Name: Item 1 -Price: $19.99 - Feature: New! - Feature: Awesome! -Name: Item 2 -Price: $29.99 - Feature: Old. - Feature: Ugly. diff --git a/src/test/resources/items2.html b/src/test/resources/items2.html deleted file mode 100644 index 0cbac78e3..000000000 --- a/src/test/resources/items2.html +++ /dev/null @@ -1,7 +0,0 @@ -{{#items}} -Name: {{name}} -Price: {{price}} -{{#features}} - Feature: {{desc}} -{{/features}} -{{/items}} diff --git a/src/test/resources/items3.html b/src/test/resources/items3.html deleted file mode 100644 index bb580a613..000000000 --- a/src/test/resources/items3.html +++ /dev/null @@ -1,10 +0,0 @@ -{{#items}} -Name: {{name}} -Price: {{price}} -{{#hasfeatures}} -Features: -{{#features}} - Feature: {{desc}} -{{/features}} -{{/hasfeatures}} -{{/items}} diff --git a/src/test/resources/items3.txt b/src/test/resources/items3.txt deleted file mode 100644 index 5b2ffe3a0..000000000 --- a/src/test/resources/items3.txt +++ /dev/null @@ -1,10 +0,0 @@ -Name: Item 1 -Price: $19.99 -Features: - Feature: New! - Feature: Awesome! -Name: Item 2 -Price: $29.99 -Features: - Feature: Old. - Feature: Ugly. diff --git a/src/test/resources/lambda.html b/src/test/resources/lambda.html deleted file mode 100644 index 0beb52106..000000000 --- a/src/test/resources/lambda.html +++ /dev/null @@ -1,3 +0,0 @@ -{{#translate}}Hello{{/translate}} -{{_translate}}Hello{{/translate}} -{{#translate}}{{#translate}}Hello{{/translate}}{{/translate}} \ No newline at end of file diff --git a/src/test/resources/lambda.txt b/src/test/resources/lambda.txt deleted file mode 100644 index 116a66be4..000000000 --- a/src/test/resources/lambda.txt +++ /dev/null @@ -1,3 +0,0 @@ -Hola -Hola -Hello \ No newline at end of file diff --git a/src/test/resources/latchedtest.html b/src/test/resources/latchedtest.html deleted file mode 100644 index c899dfe07..000000000 --- a/src/test/resources/latchedtest.html +++ /dev/null @@ -1,15 +0,0 @@ - -{{#nest}} -{{.}} - {{#nested}} -{{.}} - {{#nestest}} - {{/nestest}} - {{/nested}} - {{#nested}} - {{#nestest}} -{{.}} - {{/nestest}} - {{/nested}} -{{/nest}} - diff --git a/src/test/resources/latchedtest.txt b/src/test/resources/latchedtest.txt deleted file mode 100644 index eade38725..000000000 --- a/src/test/resources/latchedtest.txt +++ /dev/null @@ -1,5 +0,0 @@ - -How -are -you? - diff --git a/src/test/resources/latchedtestiterable.html b/src/test/resources/latchedtestiterable.html deleted file mode 100644 index 5b5d3ec18..000000000 --- a/src/test/resources/latchedtestiterable.html +++ /dev/null @@ -1,5 +0,0 @@ - -{{#list}} -{{.}} -{{/list}} - diff --git a/src/test/resources/layout_template.html b/src/test/resources/layout_template.html deleted file mode 100644 index 271200b87..000000000 --- a/src/test/resources/layout_template.html +++ /dev/null @@ -1 +0,0 @@ -{{$content}}{{/content}} \ No newline at end of file diff --git a/src/test/resources/nonrelative.html b/src/test/resources/nonrelative.html deleted file mode 100644 index b2d973d0f..000000000 --- a/src/test/resources/nonrelative.html +++ /dev/null @@ -1 +0,0 @@ -Nonrelative diff --git a/src/test/resources/null_string.html b/src/test/resources/null_string.html deleted file mode 100644 index 12bcb083e..000000000 --- a/src/test/resources/null_string.html +++ /dev/null @@ -1,5 +0,0 @@ -Hello {{name}} -glytch {{glytch}} -binary {{binary}} -value {{value}} -numeric {{numeric}} \ No newline at end of file diff --git a/src/test/resources/null_string.js b/src/test/resources/null_string.js deleted file mode 100644 index 93414a1af..000000000 --- a/src/test/resources/null_string.js +++ /dev/null @@ -1,9 +0,0 @@ -var null_string = { - name: "Elise", - glytch: true, - binary: false, - value: null, - numeric: function() { - return NaN; - } -}; diff --git a/src/test/resources/null_string.txt b/src/test/resources/null_string.txt deleted file mode 100644 index 827569b21..000000000 --- a/src/test/resources/null_string.txt +++ /dev/null @@ -1,5 +0,0 @@ -Hello Elise -glytch true -binary false -value -numeric NaN diff --git a/src/test/resources/page.html b/src/test/resources/page.html deleted file mode 100644 index 72141c5e0..000000000 --- a/src/test/resources/page.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ - This is the page content - - diff --git a/src/test/resources/partialwithpadding.html b/src/test/resources/partialwithpadding.html deleted file mode 100644 index e7ec1e4d3..000000000 --- a/src/test/resources/partialwithpadding.html +++ /dev/null @@ -1,6 +0,0 @@ - - With padding! - - - - \ No newline at end of file diff --git a/src/test/resources/reallysimple.html b/src/test/resources/reallysimple.html deleted file mode 100644 index 7d16e451d..000000000 --- a/src/test/resources/reallysimple.html +++ /dev/null @@ -1,2 +0,0 @@ -Hello {{name}} -You have just won ${{value}}! \ No newline at end of file diff --git a/src/test/resources/reallysimple.txt b/src/test/resources/reallysimple.txt deleted file mode 100644 index f3927544e..000000000 --- a/src/test/resources/reallysimple.txt +++ /dev/null @@ -1,2 +0,0 @@ -Hello Chris -You have just won $10000! \ No newline at end of file diff --git a/src/test/resources/recurse_base.html b/src/test/resources/recurse_base.html deleted file mode 100644 index fa6ca55c6..000000000 --- a/src/test/resources/recurse_base.html +++ /dev/null @@ -1,3 +0,0 @@ -{{$content}} -Test -{{/content}} \ No newline at end of file diff --git a/src/test/resources/recursion.html b/src/test/resources/recursion.html deleted file mode 100644 index 3b26f696d..000000000 --- a/src/test/resources/recursion.html +++ /dev/null @@ -1,4 +0,0 @@ -Test -{{#value}} - {{>recursion}} -{{/value}} \ No newline at end of file diff --git a/src/test/resources/recursion.txt b/src/test/resources/recursion.txt deleted file mode 100644 index 5aa3f03c3..000000000 --- a/src/test/resources/recursion.txt +++ /dev/null @@ -1,3 +0,0 @@ -Test - Test - diff --git a/src/test/resources/recursion_with_inheritance.html b/src/test/resources/recursion_with_inheritance.html deleted file mode 100644 index 8f286fc00..000000000 --- a/src/test/resources/recursion_with_inheritance.html +++ /dev/null @@ -1,2 +0,0 @@ -{{recursive_partial2}} -{{/test}} diff --git a/src/test/resources/recursive_partial2.html b/src/test/resources/recursive_partial2.html deleted file mode 100644 index 543798ecb..000000000 --- a/src/test/resources/recursive_partial2.html +++ /dev/null @@ -1,4 +0,0 @@ -{{#test}} - TEST -{{>recursive_partial3}} -{{/test}} diff --git a/src/test/resources/recursive_partial3.html b/src/test/resources/recursive_partial3.html deleted file mode 100644 index 5e8b9b062..000000000 --- a/src/test/resources/recursive_partial3.html +++ /dev/null @@ -1,4 +0,0 @@ -{{#test}} - TEST -{{>recursive_partial}} -{{/test}} diff --git a/src/test/resources/recursive_partial_inheritance.html b/src/test/resources/recursive_partial_inheritance.html deleted file mode 100644 index 95b4b559b..000000000 --- a/src/test/resources/recursive_partial_inheritance.html +++ /dev/null @@ -1,6 +0,0 @@ -{{recursive_partial}} -{{/content}} -{{/recurse_base}} \ No newline at end of file diff --git a/src/test/resources/recursive_partial_inheritance.txt b/src/test/resources/recursive_partial_inheritance.txt deleted file mode 100644 index 3c2fe152e..000000000 --- a/src/test/resources/recursive_partial_inheritance.txt +++ /dev/null @@ -1,4 +0,0 @@ -TEST - TEST - - diff --git a/src/test/resources/relative/dotdot.html b/src/test/resources/relative/dotdot.html deleted file mode 100644 index c557bc6d3..000000000 --- a/src/test/resources/relative/dotdot.html +++ /dev/null @@ -1 +0,0 @@ -{{>../uninterestingpartial}} \ No newline at end of file diff --git a/src/test/resources/relative/extension.html b/src/test/resources/relative/extension.html deleted file mode 100644 index 29ada2e30..000000000 --- a/src/test/resources/relative/extension.html +++ /dev/null @@ -1 +0,0 @@ -{{>/relative/include.html}} \ No newline at end of file diff --git a/src/test/resources/relative/functionpaths.html b/src/test/resources/relative/functionpaths.html deleted file mode 100644 index 904b6a1a5..000000000 --- a/src/test/resources/relative/functionpaths.html +++ /dev/null @@ -1 +0,0 @@ -{{#i}}{{>include}}{{/i}} \ No newline at end of file diff --git a/src/test/resources/relative/include.html b/src/test/resources/relative/include.html deleted file mode 100644 index 30d74d258..000000000 --- a/src/test/resources/relative/include.html +++ /dev/null @@ -1 +0,0 @@ -test \ No newline at end of file diff --git a/src/test/resources/relative/nonrelative.html b/src/test/resources/relative/nonrelative.html deleted file mode 100644 index 9863c75d0..000000000 --- a/src/test/resources/relative/nonrelative.html +++ /dev/null @@ -1 +0,0 @@ -{{>nonrelative}} \ No newline at end of file diff --git a/src/test/resources/relative/pathfail.html b/src/test/resources/relative/pathfail.html deleted file mode 100644 index d61cdd84a..000000000 --- a/src/test/resources/relative/pathfail.html +++ /dev/null @@ -1 +0,0 @@ -{{>relative/include}} \ No newline at end of file diff --git a/src/test/resources/relative/paths.html b/src/test/resources/relative/paths.html deleted file mode 100644 index f0cf7b09e..000000000 --- a/src/test/resources/relative/paths.html +++ /dev/null @@ -1 +0,0 @@ -{{>include}} \ No newline at end of file diff --git a/src/test/resources/relative/paths.txt b/src/test/resources/relative/paths.txt deleted file mode 100644 index 30d74d258..000000000 --- a/src/test/resources/relative/paths.txt +++ /dev/null @@ -1 +0,0 @@ -test \ No newline at end of file diff --git a/src/test/resources/relative/rootpath.html b/src/test/resources/relative/rootpath.html deleted file mode 100644 index e1a24fce7..000000000 --- a/src/test/resources/relative/rootpath.html +++ /dev/null @@ -1 +0,0 @@ -{{>/relative/include}} \ No newline at end of file diff --git a/src/test/resources/reuse_of_enumerables.html b/src/test/resources/reuse_of_enumerables.html deleted file mode 100644 index cc0cb7a41..000000000 --- a/src/test/resources/reuse_of_enumerables.html +++ /dev/null @@ -1,8 +0,0 @@ -{{#terms}} - {{name}} - {{index}} -{{/terms}} -{{#terms}} - {{name}} - {{index}} -{{/terms}} diff --git a/src/test/resources/reuse_of_enumerables.js b/src/test/resources/reuse_of_enumerables.js deleted file mode 100644 index 543e121af..000000000 --- a/src/test/resources/reuse_of_enumerables.js +++ /dev/null @@ -1,6 +0,0 @@ -var reuse_of_enumerables = { - terms: [ - {name: 't1', index: 0}, - {name: 't2', index: 1}, - ] -}; \ No newline at end of file diff --git a/src/test/resources/reuse_of_enumerables.txt b/src/test/resources/reuse_of_enumerables.txt deleted file mode 100644 index c6d5170e7..000000000 --- a/src/test/resources/reuse_of_enumerables.txt +++ /dev/null @@ -1,8 +0,0 @@ -t1 - 0 -t2 - 1 -t1 - 0 -t2 - 1 diff --git a/src/test/resources/section_as_context.html b/src/test/resources/section_as_context.html deleted file mode 100644 index 6a39a4397..000000000 --- a/src/test/resources/section_as_context.html +++ /dev/null @@ -1,9 +0,0 @@ -{{#a_object}} -

{{title}}

-

{{description}}

-
    - {{#a_list}} -
  • {{label}}
  • - {{/a_list}} -
-{{/a_object}} diff --git a/src/test/resources/section_as_context.js b/src/test/resources/section_as_context.js deleted file mode 100644 index 81ca1be6b..000000000 --- a/src/test/resources/section_as_context.js +++ /dev/null @@ -1,7 +0,0 @@ -var section_as_context = { - a_object: { - title: 'this is an object', - description: 'one of its attributes is a list', - a_list: [{label: 'listitem1'}, {label: 'listitem2'}] - } -}; diff --git a/src/test/resources/section_as_context.txt b/src/test/resources/section_as_context.txt deleted file mode 100644 index 55d41796a..000000000 --- a/src/test/resources/section_as_context.txt +++ /dev/null @@ -1,6 +0,0 @@ -

this is an object

-

one of its attributes is a list

-
    -
  • listitem1
  • -
  • listitem2
  • -
diff --git a/src/test/resources/security.html b/src/test/resources/security.html deleted file mode 100644 index 43a9b4984..000000000 --- a/src/test/resources/security.html +++ /dev/null @@ -1 +0,0 @@ -{{class.name}}{{getClass.getName}}{{test}} \ No newline at end of file diff --git a/src/test/resources/security.txt b/src/test/resources/security.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/test/resources/simple.html b/src/test/resources/simple.html deleted file mode 100644 index 0ff9be143..000000000 --- a/src/test/resources/simple.html +++ /dev/null @@ -1,8 +0,0 @@ -Hello {{name}} - You have just won ${{value}}! - - {{#test}} - {{/test}} -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes.{{fred}} -{{/in_ca}} \ No newline at end of file diff --git a/src/test/resources/simple.js b/src/test/resources/simple.js deleted file mode 100644 index 30f9834e4..000000000 --- a/src/test/resources/simple.js +++ /dev/null @@ -1,8 +0,0 @@ -var simple = { - name: "Chris", - value: 10000, - taxed_value: function() { - return this.value - (this.value * 0.4); - }, - in_ca: true -}; diff --git a/src/test/resources/simple.json b/src/test/resources/simple.json deleted file mode 100644 index 4d4ceee08..000000000 --- a/src/test/resources/simple.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Chris", - "value": 10000, - "taxed_value": 6000, - "in_ca": true -} diff --git a/src/test/resources/simple.txt b/src/test/resources/simple.txt deleted file mode 100644 index c3855206f..000000000 --- a/src/test/resources/simple.txt +++ /dev/null @@ -1,4 +0,0 @@ -Hello Chris - You have just won $10000! - -Well, $6000, after taxes. diff --git a/src/test/resources/simple2.html b/src/test/resources/simple2.html deleted file mode 100644 index 23f0a5bf4..000000000 --- a/src/test/resources/simple2.html +++ /dev/null @@ -1,8 +0,0 @@ -{{#data}} -Hello {{name}} -You have just won ${{value}}! - -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes. -{{/in_ca}} -{{/data}} \ No newline at end of file diff --git a/src/test/resources/simple2.txt b/src/test/resources/simple2.txt deleted file mode 100644 index 2222815c9..000000000 --- a/src/test/resources/simple2.txt +++ /dev/null @@ -1,3 +0,0 @@ -Hello Chris - You have just won $10000! - diff --git a/src/test/resources/simple_array.html b/src/test/resources/simple_array.html deleted file mode 100644 index 455ab252b..000000000 --- a/src/test/resources/simple_array.html +++ /dev/null @@ -1,3 +0,0 @@ -{{#list}} -{{.}} -{{/list}} diff --git a/src/test/resources/simple_array.txt b/src/test/resources/simple_array.txt deleted file mode 100644 index 01e79c32a..000000000 --- a/src/test/resources/simple_array.txt +++ /dev/null @@ -1,3 +0,0 @@ -1 -2 -3 diff --git a/src/test/resources/simple_ko.html b/src/test/resources/simple_ko.html deleted file mode 100644 index 75fed36c8..000000000 --- a/src/test/resources/simple_ko.html +++ /dev/null @@ -1,8 +0,0 @@ -안녕하세요 {{name}} -   당신은 {{value}}달러를 원했다! - - {{#test}} - {{/test}} -{{#in_ca}} -음, {{ taxed_value }}달러, 세금 후.{{fred}} -{{/in_ca}} \ No newline at end of file diff --git a/src/test/resources/simple_ko.txt b/src/test/resources/simple_ko.txt deleted file mode 100644 index 38ac124be..000000000 --- a/src/test/resources/simple_ko.txt +++ /dev/null @@ -1,4 +0,0 @@ -안녕하세요 Chris -   당신은 10000달러를 원했다! - -음, 6000달러, 세금 후. diff --git a/src/test/resources/simplefiltered.html b/src/test/resources/simplefiltered.html deleted file mode 100644 index 7b4a89d11..000000000 --- a/src/test/resources/simplefiltered.html +++ /dev/null @@ -1,14 +0,0 @@ - Hello {{name}} - You have just won ${{value}}! - - {{#test}} - {{/test}} -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes.{{fred}} -{{/in_ca}} -{{>partialwithpadding}} - {{#name}} - This is a test - {{/name}} - Test{{#name}} space{{/name}} -Test {{>partialwithpadding}} Test \ No newline at end of file diff --git a/src/test/resources/simplefiltered.txt b/src/test/resources/simplefiltered.txt deleted file mode 100644 index 9d64dbf3a..000000000 --- a/src/test/resources/simplefiltered.txt +++ /dev/null @@ -1,11 +0,0 @@ -Hello Chris -You have just won $10000! -Well, $6000, after taxes. - -With padding! - -This is a test -Test space -Test -With padding! - Test \ No newline at end of file diff --git a/src/test/resources/simplemissing.txt b/src/test/resources/simplemissing.txt deleted file mode 100644 index 6eb30ce40..000000000 --- a/src/test/resources/simplemissing.txt +++ /dev/null @@ -1,3 +0,0 @@ -Hello -You have just won $! - diff --git a/src/test/resources/simplepragma.html b/src/test/resources/simplepragma.html deleted file mode 100644 index 30c45d737..000000000 --- a/src/test/resources/simplepragma.html +++ /dev/null @@ -1,9 +0,0 @@ -{{%IMPLICIT-ITERATOR}}Hello {{name}} - You have just won ${{value}}! - - {{#test}} - {{/test}} -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes.{{fred}} -{{/in_ca}} -{{%UNKNOWN-PRAGMA}} \ No newline at end of file diff --git a/src/test/resources/simplerewrap.txt b/src/test/resources/simplerewrap.txt deleted file mode 100644 index e521c8f8c..000000000 --- a/src/test/resources/simplerewrap.txt +++ /dev/null @@ -1,6 +0,0 @@ -Hello Chris - You have just won $10000! - -Well, $6000, after taxes.test -Well, $8000, after taxes. -Well, $6000, after taxes.test diff --git a/src/test/resources/simpletyped.txt b/src/test/resources/simpletyped.txt deleted file mode 100644 index 4469d98b5..000000000 --- a/src/test/resources/simpletyped.txt +++ /dev/null @@ -1,4 +0,0 @@ -Hello [String] - You have just won $[int]! - -Well, $[int], after taxes.[String] diff --git a/src/test/resources/template_partial.html b/src/test/resources/template_partial.html deleted file mode 100644 index 4844bd6f7..000000000 --- a/src/test/resources/template_partial.html +++ /dev/null @@ -1,3 +0,0 @@ -

{{title}}

-{{>template_partial_2}} -Test: {{template_partial_2.again}} diff --git a/src/test/resources/template_partial.js b/src/test/resources/template_partial.js deleted file mode 100644 index b27ca4077..000000000 --- a/src/test/resources/template_partial.js +++ /dev/null @@ -1,6 +0,0 @@ -var partial_context = { - "title": "Welcome", - "template_partial_2": { - "again": "Goodbye" - } -} diff --git a/src/test/resources/template_partial.txt b/src/test/resources/template_partial.txt deleted file mode 100644 index 725a12ccf..000000000 --- a/src/test/resources/template_partial.txt +++ /dev/null @@ -1,3 +0,0 @@ -

Welcome

-Again, Goodbye! -Test: Goodbye diff --git a/src/test/resources/template_partial2.html b/src/test/resources/template_partial2.html deleted file mode 100644 index 86a58c62b..000000000 --- a/src/test/resources/template_partial2.html +++ /dev/null @@ -1,5 +0,0 @@ -

{{title}}

-{{#test}} -{{>template_partial_2}} -{{/test}} -Test: {{template_partial_2.again}} diff --git a/src/test/resources/template_partial2.txt b/src/test/resources/template_partial2.txt deleted file mode 100644 index 725a12ccf..000000000 --- a/src/test/resources/template_partial2.txt +++ /dev/null @@ -1,3 +0,0 @@ -

Welcome

-Again, Goodbye! -Test: Goodbye diff --git a/src/test/resources/template_partial_2.html b/src/test/resources/template_partial_2.html deleted file mode 100644 index 54bdd7d96..000000000 --- a/src/test/resources/template_partial_2.html +++ /dev/null @@ -1 +0,0 @@ -Again, {{again}}! \ No newline at end of file diff --git a/src/test/resources/templatelambda.html b/src/test/resources/templatelambda.html deleted file mode 100644 index c649639cd..000000000 --- a/src/test/resources/templatelambda.html +++ /dev/null @@ -1,3 +0,0 @@ -{{#translate}}Hello {{name}}{{/translate}} -{{_translate}}Hello {{name}}{{/translate}} -{{#translate}}Hello {{>user}}!{{/translate}} \ No newline at end of file diff --git a/src/test/resources/templatelambda.txt b/src/test/resources/templatelambda.txt deleted file mode 100644 index a58b9e7b2..000000000 --- a/src/test/resources/templatelambda.txt +++ /dev/null @@ -1,3 +0,0 @@ -Sam, Hola! -Sam, Hola! -Hola, Sam! \ No newline at end of file diff --git a/src/test/resources/templates/header.mustache b/src/test/resources/templates/header.mustache deleted file mode 100644 index ff6a831dd..000000000 --- a/src/test/resources/templates/header.mustache +++ /dev/null @@ -1,6 +0,0 @@ - - - - {{ title }} - - \ No newline at end of file diff --git a/src/test/resources/templates/someTemplate.mustache b/src/test/resources/templates/someTemplate.mustache deleted file mode 100644 index af0abb2bb..000000000 --- a/src/test/resources/templates/someTemplate.mustache +++ /dev/null @@ -1,2 +0,0 @@ -{{>header}} -

This is mustacheee

\ No newline at end of file diff --git a/src/test/resources/templates/someTemplate.txt b/src/test/resources/templates/someTemplate.txt deleted file mode 100644 index da10c46a8..000000000 --- a/src/test/resources/templates/someTemplate.txt +++ /dev/null @@ -1,7 +0,0 @@ - - - - Some title! - - -

This is mustacheee

\ No newline at end of file diff --git a/src/test/resources/timeline.mustache b/src/test/resources/timeline.mustache deleted file mode 100644 index 7df136aac..000000000 --- a/src/test/resources/timeline.mustache +++ /dev/null @@ -1,7 +0,0 @@ -
-
-{{#tweets}} -{{>tweet}} -{{/tweets}} -
-
\ No newline at end of file diff --git a/src/test/resources/tweet.mustache b/src/test/resources/tweet.mustache deleted file mode 100644 index 4d91f20cd..000000000 --- a/src/test/resources/tweet.mustache +++ /dev/null @@ -1,108 +0,0 @@ -{{{before_tweet_element}}} -<{{ _tweet_element}} - {{ _root_attr}} - data-twt-id="{{id_str}}" - {{#_web_intents}} - data-twt-intents="{{ _enabled}}" - {{#_partner}} data-twt-partner="{{ _partner}}" {{/_partner}} - {{#_related}} data-twt-related="{{ _related}}" {{/_related}} - {{/_web_intents}} - class="twt-o twt-tweet - {{#_as_reply}} twt-inline twt-reply {{/_as_reply}} - {{#_always_show_actions}} twt-always-show-actions {{/_always_show_actions}} - {{#_was_retweeted}} tweet-retweeted twt-rt {{/_was_retweeted}} - {{#media}} has-photo {{/media}} - {{#_pin_media}} twt-pinned {{/_pin_media}} - {{#_tweet_not_found}} twt-error {{/_tweet_not_found}} - {{#_favorited}} twt-fav {{/_favorited}} - {{#_format}} {{ _format}} {{/_format}} - {{#_touch_device}} twt-touch {{/_touch_device}} - hentry"> -
- {{{before_username}}} - {{#user}} - {{#screen_name}} - - {{/screen_name}} - {{#profile_image_url_https}}{{/profile_image_url_https}} - {{#name}}{{name}}{{/name}} - {{#_has_badges}} -
    - {{{before_badges}}} - {{#protected}}
  • 🔒
  • {{/protected}} - {{#verified}}
  • {{/verified}} - {{{after_badges}}} -
- {{/_has_badges}} - {{#screen_name}} - @{{screen_name}} -
- {{/screen_name}} - {{#in_reply_to}}· {{{ _in_reply_to}}}{{/in_reply_to}} - {{#_show_follow_button}} - - {{/_show_follow_button}} - {{/user}} - - {{{after_username}}} - - {{#_as_timeline}} - {{#rendered_time}} - - {{/rendered_time}} - {{/_as_timeline}} - -
- - {{#rendered_text}} -
- {{{before_tweet}}} -

{{{rendered_text}}}

- {{{after_tweet}}} -
- {{/rendered_text}} - - {{{tweet_media}}} - - {{^_as_reply}} - - {{/_as_reply}} - - {{{timeline_media}}} - - {{#_as_reply}} -
-
- {{/_as_reply}} - - -{{{after_tweet_element}}} \ No newline at end of file diff --git a/src/test/resources/two_in_a_row.html b/src/test/resources/two_in_a_row.html deleted file mode 100644 index dc38602db..000000000 --- a/src/test/resources/two_in_a_row.html +++ /dev/null @@ -1 +0,0 @@ -{{greeting}}, {{name}}! \ No newline at end of file diff --git a/src/test/resources/two_in_a_row.js b/src/test/resources/two_in_a_row.js deleted file mode 100644 index 09c1809bb..000000000 --- a/src/test/resources/two_in_a_row.js +++ /dev/null @@ -1,4 +0,0 @@ -var two_in_a_row = { - name: "Joe", - greeting: "Welcome" -}; diff --git a/src/test/resources/two_in_a_row.txt b/src/test/resources/two_in_a_row.txt deleted file mode 100644 index c6d6a9b48..000000000 --- a/src/test/resources/two_in_a_row.txt +++ /dev/null @@ -1 +0,0 @@ -Welcome, Joe! diff --git a/src/test/resources/unambiguoussimple.html b/src/test/resources/unambiguoussimple.html deleted file mode 100644 index 02f3b4b00..000000000 --- a/src/test/resources/unambiguoussimple.html +++ /dev/null @@ -1,6 +0,0 @@ -Hello {{name}} -You have just won ${{value}}! - -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes. -{{/in_ca}} \ No newline at end of file diff --git a/src/test/resources/unambiguoussimple.txt b/src/test/resources/unambiguoussimple.txt deleted file mode 100644 index e2943b91b..000000000 --- a/src/test/resources/unambiguoussimple.txt +++ /dev/null @@ -1,4 +0,0 @@ -Hello Chris -You have just won $10000! - -Well, $6000, after taxes. diff --git a/src/test/resources/unambiguoussimpleencoded.txt b/src/test/resources/unambiguoussimpleencoded.txt deleted file mode 100644 index 2a2d80bcd..000000000 --- a/src/test/resources/unambiguoussimpleencoded.txt +++ /dev/null @@ -1,4 +0,0 @@ -Hello <Chris> -You have just won $10000! - -Well, $6000, after taxes. diff --git a/src/test/resources/unescaped.html b/src/test/resources/unescaped.html deleted file mode 100644 index 6b07d7b71..000000000 --- a/src/test/resources/unescaped.html +++ /dev/null @@ -1 +0,0 @@ -

{{{title}}}

diff --git a/src/test/resources/unescaped.js b/src/test/resources/unescaped.js deleted file mode 100644 index 0bd20b8c6..000000000 --- a/src/test/resources/unescaped.js +++ /dev/null @@ -1,5 +0,0 @@ -var unescaped = { - title: function() { - return "Bear > Shark"; - } -}; diff --git a/src/test/resources/unescaped.txt b/src/test/resources/unescaped.txt deleted file mode 100644 index 089ad7967..000000000 --- a/src/test/resources/unescaped.txt +++ /dev/null @@ -1 +0,0 @@ -

Bear > Shark

diff --git a/src/test/resources/unexecutecomplex.html b/src/test/resources/unexecutecomplex.html deleted file mode 100644 index 1dd7db442..000000000 --- a/src/test/resources/unexecutecomplex.html +++ /dev/null @@ -1,19 +0,0 @@ -

{{header}}

-{{#list}} -
    - {{#item}} - {{#current}} -
  • {{#include}}{{name}}{{/include}}
  • - {{/current}} - {{#link}} -
  • {{name}}
  • - {{/link}} - {{/item}} -
-{{/list}} -{{#empty}} -

The list is empty.

-{{/empty}} -{{^empty}} -

The list is not empty.

-{{/empty}} \ No newline at end of file diff --git a/src/test/resources/unexecutecomplex.txt b/src/test/resources/unexecutecomplex.txt deleted file mode 100644 index a1632f232..000000000 --- a/src/test/resources/unexecutecomplex.txt +++ /dev/null @@ -1,7 +0,0 @@ -

Colors

- -

The list is not empty.

diff --git a/src/test/resources/unexecutetemplatelambda.html b/src/test/resources/unexecutetemplatelambda.html deleted file mode 100644 index 86eb44f9d..000000000 --- a/src/test/resources/unexecutetemplatelambda.html +++ /dev/null @@ -1 +0,0 @@ -{{_translate}}Hello {{name}}{{/translate}} diff --git a/src/test/resources/unexecutetemplatelambda.txt b/src/test/resources/unexecutetemplatelambda.txt deleted file mode 100644 index dea5ba720..000000000 --- a/src/test/resources/unexecutetemplatelambda.txt +++ /dev/null @@ -1 +0,0 @@ -Sam, Hola! diff --git a/src/test/resources/uninterestingpartial.html b/src/test/resources/uninterestingpartial.html deleted file mode 100644 index 9173f9404..000000000 --- a/src/test/resources/uninterestingpartial.html +++ /dev/null @@ -1 +0,0 @@ -not interesting. \ No newline at end of file diff --git a/src/test/resources/unknown_pragma.html b/src/test/resources/unknown_pragma.html deleted file mode 100644 index 113810d8a..000000000 --- a/src/test/resources/unknown_pragma.html +++ /dev/null @@ -1 +0,0 @@ -{{%I-HAVE-THE-GREATEST-MUSTACHE}} diff --git a/src/test/resources/unknown_pragma.js b/src/test/resources/unknown_pragma.js deleted file mode 100644 index 68344a52c..000000000 --- a/src/test/resources/unknown_pragma.js +++ /dev/null @@ -1 +0,0 @@ -var unknown_pragma = {}; diff --git a/src/test/resources/unknown_pragma.txt b/src/test/resources/unknown_pragma.txt deleted file mode 100644 index a34840d50..000000000 --- a/src/test/resources/unknown_pragma.txt +++ /dev/null @@ -1 +0,0 @@ -ERROR: This implementation of mustache doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma diff --git a/src/test/resources/user.html b/src/test/resources/user.html deleted file mode 100644 index a22fb10b5..000000000 --- a/src/test/resources/user.html +++ /dev/null @@ -1 +0,0 @@ -{{name}} \ No newline at end of file diff --git a/src/test/resources/view_partial.2.html b/src/test/resources/view_partial.2.html deleted file mode 100644 index 2fea6327a..000000000 --- a/src/test/resources/view_partial.2.html +++ /dev/null @@ -1,5 +0,0 @@ -Hello {{name}} -You have just won ${{value}}! -{{#in_ca}} -Well, ${{ taxed_value }}, after taxes. -{{/in_ca}} diff --git a/src/test/resources/view_partial.html b/src/test/resources/view_partial.html deleted file mode 100644 index 8f0c08dd7..000000000 --- a/src/test/resources/view_partial.html +++ /dev/null @@ -1,3 +0,0 @@ -

{{greeting}}

-{{>partial}} -

{{farewell}}

\ No newline at end of file diff --git a/src/test/resources/view_partial.js b/src/test/resources/view_partial.js deleted file mode 100644 index 30ade5599..000000000 --- a/src/test/resources/view_partial.js +++ /dev/null @@ -1,19 +0,0 @@ -var partial_context = { - greeting: function() { - return "Welcome"; - }, - - farewell: function() { - return "Fair enough, right?"; - }, - - partial: { - name: "Chris", - value: 10000, - taxed_value: function() { - return this.value - (this.value * 0.4); - }, - in_ca: true - } -}; - diff --git a/src/test/resources/view_partial.txt b/src/test/resources/view_partial.txt deleted file mode 100644 index 160b0b60d..000000000 --- a/src/test/resources/view_partial.txt +++ /dev/null @@ -1,6 +0,0 @@ -

Welcome

-Hello Chris -You have just won $10000! -Well, $6000, after taxes. - -

Fair enough, right?

diff --git a/src/test/resources/wrapper.html b/src/test/resources/wrapper.html deleted file mode 100644 index 93976924a..000000000 --- a/src/test/resources/wrapper.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ - {{$yield}}{{/yield}} - -{{/content}} -{{/layout_template}} \ No newline at end of file diff --git a/src/test/resources/xss.html b/src/test/resources/xss.html deleted file mode 100644 index 5a2d83560..000000000 --- a/src/test/resources/xss.html +++ /dev/null @@ -1,2 +0,0 @@ -{{message}} - \ No newline at end of file diff --git a/src/test/resources/xss.txt b/src/test/resources/xss.txt deleted file mode 100644 index adcb19abb..000000000 --- a/src/test/resources/xss.txt +++ /dev/null @@ -1,2 +0,0 @@ -I <3 Ponies! - \ No newline at end of file