Skip to content

Commit 984de61

Browse files
committed
CR & update Storage version
1 parent 3c8527d commit 984de61

23 files changed

+114
-136
lines changed

GeekLearning.Templating.sln

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "GeekLearning.Templating.Han
1515
EndProject
1616
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "GeekLearning.Templating.Mustache", "src\GeekLearning.Templating.Mustache\GeekLearning.Templating.Mustache.xproj", "{515925E3-4359-4079-A24C-E7367560C95F}"
1717
EndProject
18+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A75429E6-34A4-43EC-AA7E-6DD4FFAF8704}"
19+
ProjectSection(SolutionItems) = preProject
20+
.gitattributes = .gitattributes
21+
.gitignore = .gitignore
22+
global.json = global.json
23+
LICENSE.md = LICENSE.md
24+
README.md = README.md
25+
EndProjectSection
26+
EndProject
1827
Global
1928
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2029
Debug|Any CPU = Debug|Any CPU

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
![](https://geeklearning.visualstudio.com/_apis/public/build/definitions/f841b266-7595-4d01-9ee1-4864cf65aa73/23/badge)
1+
[![NuGet Pre Release](https://img.shields.io/nuget/vpre/GeekLearning.Templating.svg?maxAge=2592000)]()
2+
[![NuGet Pre Release](https://img.shields.io/nuget/vpre/GeekLearning.Templating.Handlebars.svg?maxAge=2592000)]()
3+
[![NuGet Pre Release](https://img.shields.io/nuget/vpre/GeekLearning.Templating.Mustache.svg?maxAge=2592000)]()
4+
[![Build Status](https://geeklearning.visualstudio.com/_apis/public/build/definitions/f841b266-7595-4d01-9ee1-4864cf65aa73/24/badge)](#)
5+
26
# gl-dotnet-templating
37

48
Coming Soon!
9+
10+
#Templating Abstraction
11+
12+
#Handlebars provider
13+
14+
#Mustache.js provider

global.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"projects": [ "src", "samples" ]
2+
"projects": [ "src", "samples" ],
3+
"sdk": {
4+
"version": "1.0.0-preview1-002702"
5+
}
36
}

samples/GeekLearning.Templating.BasicSample/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
namespace GeekLearning.Templating.BasicSample
22
{
3-
using Microsoft.Extensions.Options;
43
using Microsoft.Extensions.Configuration;
54
using Microsoft.Extensions.DependencyInjection;
65
using Microsoft.Extensions.Logging;
7-
using GeekLearning.Storage;
6+
using Storage;
87
using Microsoft.AspNetCore.Hosting;
98
using Microsoft.AspNetCore.Builder;
9+
1010
public class Startup
1111
{
1212
public Startup(IHostingEnvironment env)

samples/GeekLearning.Templating.BasicSample/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"Microsoft.Extensions.Logging": "1.0.0-rc2-final",
1515
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
1616
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final",
17-
"GeekLearning.Storage.FileSystem": "0.2.0-beta0001",
18-
"GeekLearning.Storage.Azure": "0.2.0-beta0001",
17+
"GeekLearning.Storage.FileSystem": "0.2.0-beta0002",
18+
"GeekLearning.Storage.Azure": "0.2.0-beta0002",
1919
"GeekLearning.Templating": "*",
2020
"GeekLearning.Templating.Handlebars": "*",
2121
"GeekLearning.Templating.Mustache": "*"

src/GeekLearning.Templating.Handlebars/GeekLearningHandlebarsTemplatingExtensions.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
using Microsoft.Extensions.DependencyInjection;
2-
using Microsoft.Extensions.DependencyInjection.Extensions;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Threading.Tasks;
7-
8-
namespace GeekLearning.Templating
1+
namespace GeekLearning.Templating
92
{
3+
using Microsoft.Extensions.DependencyInjection;
4+
using Microsoft.Extensions.DependencyInjection.Extensions;
5+
106
public static class GeekLearningHandlebarsTemplatingExtensions
117
{
128
public static IServiceCollection AddHandlebars(this IServiceCollection services)

src/GeekLearning.Templating.Handlebars/HandlebarsTemplate.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using HandlebarsDotNet;
44
using System;
55
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Threading.Tasks;
86

97
public class HandlebarsTemplate : ITemplate
108
{

src/GeekLearning.Templating.Handlebars/HandlebarsTemplateProvider.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Microsoft.Extensions.Caching.Memory;
6-
using GeekLearning.Storage;
7-
8-
namespace GeekLearning.Templating.Handlebars
1+
namespace GeekLearning.Templating.Handlebars
92
{
3+
using System.Collections.Generic;
4+
105
public class HandlebarsTemplateProvider: ITemplateProvider
116
{
127
public HandlebarsTemplateProvider()
@@ -16,6 +11,7 @@ public HandlebarsTemplateProvider()
1611
}
1712

1813
public ISet<string> MimeTypes { get; }
14+
1915
public ISet<string> Extensions { get; }
2016

2117
public ITemplate Compile(string templateContent)
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
{
22
"version": "1.0.0-*",
3+
"description": "Templating with Handlebars",
4+
"authors": [ "Geek Learning", "Cyprien Autexier", "Adrien Siffermann" ],
5+
"packOptions": {
6+
"tags": [ ],
7+
"projectUrl": "",
8+
"licenseUrl": ""
9+
},
310

411
"dependencies": {
12+
"NETStandard.Library": "1.5.0-rc2-24027",
513
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-rc2-final",
614
"handlebars.netstandard": "1.0.0-dotnet-core-rc2-0001",
7-
"NETStandard.Library": "1.5.0-rc2-24027",
815
"GeekLearning.Templating": "*"
916
},
10-
"frameworks": {
11-
"net451": {
1217

13-
},
18+
"frameworks": {
19+
"net451": { },
1420
"netstandard1.5": {
15-
"dependencies": {
16-
"Microsoft.CSharp": "4.0.1-rc2-24027",
17-
"System.Collections": "4.0.11-rc2-24027",
18-
"System.Linq": "4.1.0-rc2-24027",
19-
"System.Runtime": "4.1.0-rc2-24027",
20-
"System.Threading": "4.0.11-rc2-24027"
21-
}
21+
"imports": [
22+
"dotnet5.6",
23+
"dnxcore50",
24+
"portable-net45+win8"
25+
]
2226
}
2327
}
2428
}

src/GeekLearning.Templating.Mustache/GeekLearningMustacheTemplatingExtensions.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
using Microsoft.Extensions.DependencyInjection;
2-
using Microsoft.Extensions.DependencyInjection.Extensions;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Threading.Tasks;
7-
8-
namespace GeekLearning.Templating
1+
namespace GeekLearning.Templating
92
{
3+
using Microsoft.Extensions.DependencyInjection;
4+
using Microsoft.Extensions.DependencyInjection.Extensions;
5+
106
public static class GeekLearningMustacheTemplatingExtensions
117
{
128
public static IServiceCollection AddMustache(this IServiceCollection services)

0 commit comments

Comments
 (0)