GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - groue/GRMustache: Flexible and production-ready Mustache templates for MacOS Cocoa and iOS

BranchesTags
Open more actions menu

Latest commit

 

History

2,477 Commits
2,477 Commits

Folders and files

NameName
Last commit message
Last commit date
Articles
Articles
 
 
Guides
Guides
 
 
Reference/html
Reference/html
 
 
include
include
 
 
lib
lib
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
AppledocSettings.plist
AppledocSettings.plist
 
 
GRMustache.podspec
GRMustache.podspec
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
RELEASE_NOTES.md
RELEASE_NOTES.md
 
 
TODO.md
TODO.md
 
 

Repository files navigation

GRMustache

GRMustache is a Mustache template engine written in Objective-C, for both MacOS Cocoa and iOS.

It ships with built-in goodies and extensibility hooks that let you avoid the strict minimalism of the genuine Mustache language when you need it.

April 22, 2015: GRMustache 7.3.2 is out. Release notes

Get release announcements and usage tips: follow @GRMustache on Twitter.

System requirements

GRMustache targets iOS down to version 4.3, MacOS down to 10.6 Snow Leopard (without garbage collection), and only depends on the Foundation framework.

Swift developers: You can use GRMustache from Swift, with a limitation: you can only render Objective-C objects. Instead, consider using GRMustache.swift, a pure Swift implementation of GRMustache.

How To

1. Setup your Xcode project

You have three options, from the simplest to the hairiest:

  • CocoaPods
  • Static Library
  • Compile the raw sources

2. Start rendering templates

#import "GRMustache.h"

One-liners:

// Renders "Hello Arthur!"
NSString *rendering = [GRMustacheTemplate renderObject:@{ @"name": @"Arthur" } fromString:@"Hello {{name}}!" error:NULL];
// Renders the `Profile.mustache` resource of the main bundle
NSString *rendering = [GRMustacheTemplate renderObject:user fromResource:@"Profile" bundle:nil error:NULL];

Reuse templates in order to avoid parsing the same template several times:

GRMustacheTemplate *template = [GRMustacheTemplate templateFromResource:@"Profile" bundle:nil error:nil];
rendering = [template renderObject:arthur error:NULL];
rendering = [template renderObject:barbara error:NULL];
rendering = ...

Documentation

If you don't know Mustache, start here: http://mustache.github.io/mustache.5.html

  • Guides: a guided tour of GRMustache
  • Reference: all classes & protocols
  • Troubleshooting
  • FAQ

License

Released under the MIT License.

Other Nifty Libraries

  • groue/GRMustache.swift: Flexible Mustache templates for Swift 1.2 and 2.
  • groue/GRDB.swift: SQLite toolkit for Swift 2.
  • groue/GRValidation: Validation toolkit for Swift 2.

About

Flexible and production-ready Mustache templates for MacOS Cocoa and iOS

mustache.github.com/

Resources

Readme
MIT license
Activity

Stars

1.4k stars

Watchers

41 watching

Forks

186 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.