plapointe6 / esphtmltemplateprocessor Goto Github PK
View Code? Open in Web Editor NEWA library that provide simple HTML template processing for ESP using SPIFFS
License: GNU General Public License v3.0
A library that provide simple HTML template processing for ESP using SPIFFS
License: GNU General Public License v3.0
Hi,
it seems that the processor runs into an issue if the returned string in indexKeyProcessor has a zero length.
The html site did not get rendered returned if the return value of a key is "". At least in my program.
Chritstopher
In html line contains a space symbols in text, library have a parse error.
For example:
<tr><td>Test template IP</td><td><input name="TestTemplateIP" size=15 maxlength=15 value={{test_template1}}></input></td></tr>
key
have parsed as {{test_template
not a test_template
.
Hi,
I'm trying to integrate your library into my code and get this odd conversion error. Any idea how to fix this?
Your example code compiles and is running fine.
Maybe there are some includes interfering with your library? These are my includes
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPUpdateServer.h> // http://arduino.esp8266.com/Arduino/versions/2.0.0/doc/ota_updates/ota_updates.html#implementation-overview
#include <time.h>
#include <FS.h>
#include <SimpleTimer.h> // https://github.com/schinken/SimpleTimer, https://circuits4you.com/2018/01/31/example-of-esp8266-flash-file-system-spiffs/
#include "EspHtmlTemplateProcessor.h"
#include "myconfig.h"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.