I just found out that it can be done with grunt.template as follows:
template: {
options: {
data: {
pathToCss: './css'
}
},
demo: {
files: [
{ '<%= ./output/index.html': ['<%= ./input/template.html'] }
]
}
},
And in the input file (template.html) you define 'pathToCss' as follows:
<link rel="stylesheet" href="../../<%- pathToCss %>/styles.css">
However, if I look at the documentation, I don't see where this is documentated!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…