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)
|
* Migrated angel_orm_postgres to 3.0.0 (51/54 tests passed)
|
||||||
* Create orm-sdk-2.12.x boilerplate (in progress) <= Milestone 2
|
* 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_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_auth_cors to 4.0.0 (10/15 tests passed)
|
||||||
* Migrated angel_oauth2 to 4.0.0 (17/25 tests passed)
|
* Migrated angel_oauth2 to 4.0.0 (17/25 tests passed)
|
||||||
* Migrated angel_proxy to 4.0.0 (5/7 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
|
* Migrated to support Dart SDK 2.12.x NNBD
|
||||||
* Replaced `mustache4dart` with `mustache_template`
|
* Replaced `mustache4dart` with `mustache_template`
|
||||||
|
|
||||||
# 2.0.0
|
## 2.0.0
|
||||||
* Angel 2 and Dart 2 support.
|
|
||||||
|
* Angel 2 and Dart 2 support.
|
||||||
|
|
|
@ -1,22 +1,26 @@
|
||||||
# mustache
|
# Mustache Template Renderer for Angel3
|
||||||
[![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 (Handlebars) view generator for the [Angel](https://github.com/angel-dart/angel)
|
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_mustache)
|
||||||
web server framework.
|
[![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!
|
Thanks so much @c4wrd for his help with bringing this project to life!
|
||||||
|
|
||||||
# Installation
|
## Installation
|
||||||
|
|
||||||
In `pubspec.yaml`:
|
In `pubspec.yaml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_mustache: ^2.0.0
|
angel3_mustache: ^3.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
# Usage
|
## Usage
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
const FileSystem fs = const LocalFileSystem();
|
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.
|
- **partialsPath**: A path within the viewsDirectory to search for partials in.
|
||||||
Default is `./partials`.
|
Default is `./partials`.
|
||||||
- **fileExtension**: The file extension to search for. Default is `.mustache`.
|
- **fileExtension**: The file extension to search for. Default is `.mustache`.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:angel_mustache/angel_mustache.dart';
|
import 'package:angel3_mustache/angel3_mustache.dart';
|
||||||
import 'package:file/file.dart';
|
import 'package:file/file.dart';
|
||||||
import 'package:file/local.dart';
|
import 'package:file/local.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
library angel_mustache;
|
library angel3_mustache;
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:file/file.dart';
|
import 'package:file/file.dart';
|
||||||
import 'package:mustache_template/mustache_template.dart' as viewer;
|
import 'package:mustache_template/mustache_template.dart' as viewer;
|
||||||
import 'package:path/path.dart' as p;
|
import 'package:path/path.dart' as p;
|
|
@ -2,8 +2,8 @@ import 'dart:async';
|
||||||
import 'dart:collection';
|
import 'dart:collection';
|
||||||
import 'package:file/file.dart';
|
import 'package:file/file.dart';
|
||||||
|
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:angel_mustache/src/mustache_context.dart';
|
import 'package:angel3_mustache/src/mustache_context.dart';
|
||||||
|
|
||||||
class MustacheViewCache {
|
class MustacheViewCache {
|
||||||
/// The context for which views and partials are
|
/// The context for which views and partials are
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
name: angel_mustache
|
name: angel3_mustache
|
||||||
version: 2.0.0
|
version: 3.0.0
|
||||||
description: Mustache view generator for Angel.
|
description: A service that renders Mustache template into HTML view for Angel3
|
||||||
homepage: https://github.com/angel-dart/angel_mustache
|
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/mustache
|
||||||
publish_to: none
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
dependencies:
|
dependencies:
|
||||||
angel_framework: #^2.0.0-alpha
|
angel3_framework: ^4.0.0
|
||||||
git:
|
|
||||||
url: https://github.com/dukefirehawk/angel.git
|
|
||||||
ref: sdk-2.12.x_nnbd
|
|
||||||
path: packages/framework
|
|
||||||
file: ^6.1.2
|
file: ^6.1.2
|
||||||
mustache_template: ^2.0.0
|
mustache_template: ^2.0.0
|
||||||
path: ^1.8.0
|
path: ^1.8.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel3_framework/angel3_framework.dart';
|
||||||
import 'package:angel_mustache/angel_mustache.dart';
|
import 'package:angel3_mustache/angel3_mustache.dart';
|
||||||
import 'package:file/file.dart';
|
import 'package:file/file.dart';
|
||||||
import 'package:file/local.dart';
|
import 'package:file/local.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
Loading…
Reference in a new issue