Coder Social home page Coder Social logo

plapointe6 / esphtmltemplateprocessor Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 7.0 19 KB

A library that provide simple HTML template processing for ESP using SPIFFS

License: GNU General Public License v3.0

C++ 100.00%
arduino arduino-library esp esp32 esp8266 esp8266-arduino iot

esphtmltemplateprocessor's People

Contributors

plapointe6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esphtmltemplateprocessor's Issues

zero length return value

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

Key parse error

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.

Sting conversion error when calling processAndSend()

Hi,
I'm trying to integrate your library into my code and get this odd conversion error. Any idea how to fix this?

image

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.