Published mustache
This commit is contained in:
parent
c9c431b3e5
commit
44f519e9d1
8 changed files with 36 additions and 32 deletions
|
@ -44,7 +44,7 @@
|
|||
* Migrated angel_orm_postgres to 3.0.0 (51/54 tests passed)
|
||||
* Create orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2
|
||||
* Migrated angel_auth_oauth2 to 4.0.0 (0/0 tests passed)
|
||||
* Migrated angel_auth_cache to 4.0.0 (4/7 tests passed)
|
||||
* Migrated angel_auth_cache to 4.0.0 (7/7 tests passed)
|
||||
* Migrated angel_auth_cors to 4.0.0 (10/15 tests passed)
|
||||
* Migrated angel_oauth2 to 4.0.0 (17/25 tests passed)
|
||||
* Migrated angel_proxy to 4.0.0 (5/7 tests passed)
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
# 3.0.0
|
||||
# Change Log
|
||||
|
||||
## 3.0.0
|
||||
|
||||
* Migrated to support Dart SDK 2.12.x NNBD
|
||||
* Replaced `mustache4dart` with `mustache_template`
|
||||
|
||||
# 2.0.0
|
||||
* Angel 2 and Dart 2 support.
|
||||
## 2.0.0
|
||||
|
||||
* Angel 2 and Dart 2 support.
|
||||
|
|
|
@ -1,22 +1,26 @@
|
|||
# mustache
|
||||
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/angel_dart/discussion)
|
||||
[![version](https://img.shields.io/pub/v/angel_mustache.svg)](https://pub.dartlang.org/packages/angel_mustache)
|
||||
[![build status](https://travis-ci.org/angel-dart/mustache.svg?branch=master)](https://travis-ci.org/angel-dart/mustache)
|
||||
# Mustache Template Renderer for Angel3
|
||||
|
||||
Mustache (Handlebars) view generator for the [Angel](https://github.com/angel-dart/angel)
|
||||
web server framework.
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_mustache)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/mustache/LICENSE)
|
||||
|
||||
A service that renders Mustache template into HTML view for [Angel3](https://github.com/dukefirehawk/angel) framework.
|
||||
|
||||
Thanks so much @c4wrd for his help with bringing this project to life!
|
||||
|
||||
# Installation
|
||||
## Installation
|
||||
|
||||
In `pubspec.yaml`:
|
||||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel_mustache: ^2.0.0
|
||||
angel3_mustache: ^3.0.0
|
||||
```
|
||||
|
||||
# Usage
|
||||
## Usage
|
||||
|
||||
```dart
|
||||
const FileSystem fs = const LocalFileSystem();
|
||||
|
||||
|
@ -29,7 +33,8 @@ configureServer(Angel app) async {
|
|||
}
|
||||
```
|
||||
|
||||
# Options
|
||||
@# Options
|
||||
|
||||
- **partialsPath**: A path within the viewsDirectory to search for partials in.
|
||||
Default is `./partials`.
|
||||
- **fileExtension**: The file extension to search for. Default is `.mustache`.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_mustache/angel_mustache.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_mustache/angel3_mustache.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/local.dart';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
library angel_mustache;
|
||||
library angel3_mustache;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:mustache_template/mustache_template.dart' as viewer;
|
||||
import 'package:path/path.dart' as p;
|
|
@ -2,8 +2,8 @@ import 'dart:async';
|
|||
import 'dart:collection';
|
||||
import 'package:file/file.dart';
|
||||
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_mustache/src/mustache_context.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_mustache/src/mustache_context.dart';
|
||||
|
||||
class MustacheViewCache {
|
||||
/// The context for which views and partials are
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
name: angel_mustache
|
||||
version: 2.0.0
|
||||
description: Mustache view generator for Angel.
|
||||
homepage: https://github.com/angel-dart/angel_mustache
|
||||
publish_to: none
|
||||
name: angel3_mustache
|
||||
version: 3.0.0
|
||||
description: A service that renders Mustache template into HTML view for Angel3
|
||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/mustache
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
dependencies:
|
||||
angel_framework: #^2.0.0-alpha
|
||||
git:
|
||||
url: https://github.com/dukefirehawk/angel.git
|
||||
ref: sdk-2.12.x_nnbd
|
||||
path: packages/framework
|
||||
angel3_framework: ^4.0.0
|
||||
file: ^6.1.2
|
||||
mustache_template: ^2.0.0
|
||||
path: ^1.8.0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel_framework/angel_framework.dart';
|
||||
import 'package:angel_mustache/angel_mustache.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_mustache/angel3_mustache.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/local.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
|
Loading…
Reference in a new issue