11/*
2- * proejct-default.ts
3- *
4- * Copyright (C) 2020-2022 Posit Software, PBC
5- *
6- */
2+ * proejct-default.ts
3+ *
4+ * Copyright (C) 2020-2022 Posit Software, PBC
5+ *
6+ */
77
88import { join } from "path/mod.ts" ;
99
@@ -27,21 +27,27 @@ export const defaultProjectType: ProjectType = {
2727 "quarto-contrib" ,
2828 ] ,
2929
30- create : ( title : string , _template ?: string ) : ProjectCreate => {
31- // TODO: Conditionalize based upon `template` above
30+ create : ( title : string , template ?: string ) : ProjectCreate => {
31+ let resourceDirectory = "default" ;
32+ if ( template === "confluence" ) {
33+ resourceDirectory = "confluence" ;
34+ }
35+
36+ const resourceDir = resourcePath ( join ( "projects" , resourceDirectory ) ) ;
3237
33- const resourceDir = resourcePath ( join ( "projects" , "default" ) ) ;
3438 return {
3539 configTemplate : join ( resourceDir , "templates" , "_quarto.ejs.yml" ) ,
3640 resourceDir,
3741 scaffold : ( engine : string , kernel ?: string , packages ?: string [ ] ) => {
38- const file : ProjectScaffoldFile [ ] = [ {
39- name : title ,
40- content : `## Quarto
42+ const file : ProjectScaffoldFile [ ] = [
43+ {
44+ name : title ,
45+ content : `## Quarto
4146
4247Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.` ,
43- title,
44- } ] ;
48+ title,
49+ } ,
50+ ] ;
4551 // add some additional content if we were a jupyter engine document created w/
4652 // matplotlib and/or pandas
4753 if (
0 commit comments