Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4010074
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:57:19+00:00 2026-05-20T08:57:19+00:00

I am creating a service in which I want to allow end-users to edit

  • 0

I am creating a service in which I want to allow end-users to edit HTML templates for web pages that allows for access to specific “variables” for inclusion in the template.

I know that liquid was designed for this very purpose, is secure (at least relatively), and is in heavy production use. However, I find the language to be fairly complex for end-users as compared to something like Mustache.

Mustache sounds great, but I am concerned about security… has it ever been used for end-user templates?

Basically I am looking for a templating engine I can use w/ Rails for end-users that is:

  1. Secure – will not allow the execution of code by the user… at least not on the server. Users will be allowed to insert client-side javascript.
  2. Powerful – allows end-users to create pretty much any web page they can imagine using the supplied “variables” and within the context of #1
  3. Simple – the syntax is clear and easy for end-users to apply
  4. Bonus points if there is support for rendering the template syntax in javascript and other languages.

Liquid meets 1 & 2, but not 3-4. Mustache meets 2-4, but I’m not sure about #1 and that is non-negotiable.

Greatly appreciate any insights, experiences, or comments.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:57:19+00:00Added an answer on May 20, 2026 at 8:57 am

    Mustache is fantastic for interpolation and I can’t imagine it ever exposing you to server-side vulnerabilities if you’re using it for Javascript evaluation. It’s the simplest, most powerful option. I don’t know that non-programmers would understand it, but I’m sure it’s simpler than Liquid.

    Another option would be to use an existing simpler user markup set like BBcode or a rich-text editing library like TinyMCE. These are much reduced in functionality, but are easier to use for average people.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an application in which I want to access a web service
i am working on project in which we are creating a web service that
I'm creating a web service, which run in GlassFish, and I want to have
I am currently creating a service which connects to a DAL and that can
I am creating an application which involves so many web-service calls. I am using
I am creating an service which is use Service Component ,I want to run
I'm creating a WCF service which I want to consume from a Java app.
I am creating a Windows Service which I want to use NLog with. I
I am creating a WCF Web Service in which one method (exposed in Service)
I am creating a Java service which will run within a web servlet container

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.