Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
feat(templates): change default file extension for templates from '.t…
Browse files Browse the repository at this point in the history
…pl.html' to '.html'

BREAKING CHANGE:
Default file extension for slides changed from '.tpl.html' to '.html'. Rename your slide files or change back to old extension via slidesConfig.slidesTemplateSuffix
  • Loading branch information
Philipp Burgmer committed Oct 12, 2015
1 parent 3b80e20 commit 106b4ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/slides/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

function mapSlidesConfig() {
var prefix = slidesConfig.slideTemplatePrefix || 'slides/content/';
var suffix = slidesConfig.slideTemplateSuffix || '.tpl.html';
var suffix = slidesConfig.slideTemplateSuffix || '.html';

slides = slidesConfig.slides.map(function (slide) {
var slideObject = {
Expand Down Expand Up @@ -170,7 +170,7 @@
function ($location, $window, $document, SlidesService, $rootScope, slidesConfig, $injector) {
return {
restrict: 'EA',
templateUrl: slidesConfig.directiveTemplateUrl || 'slides/slides.tpl.html',
templateUrl: slidesConfig.directiveTemplateUrl || 'slides/slides.html',
replace: true,
link: function (scope, jqElement) {
var element = jqElement[0];
Expand Down
4 changes: 2 additions & 2 deletions src/w11k-slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
module.constant('slidesConfig', {
slides: [],
slideTemplatePrefix: 'slides/content/',
slideTemplateSuffix: '.tpl.html',
slideTemplateSuffix: '.html',
masters: {},
footer: {
templateUrl: 'footer/footer.tpl.html',
templateUrl: 'footer/footer.html',
left: '',
middle: '',
right: '$index + 1'
Expand Down

0 comments on commit 106b4ed

Please sign in to comment.