14 lines
338 B
TypeScript
14 lines
338 B
TypeScript
import { getCurrentPath } from '@/utils/helpers';
|
|
const __dirname = getCurrentPath(import.meta.url);
|
|
|
|
import { art } from '@/utils/render';
|
|
import path from 'node:path';
|
|
|
|
const courseDesc = (picurl, desc) =>
|
|
art(path.join(__dirname, 'templates/courseDesc.art'), {
|
|
picurl,
|
|
desc,
|
|
});
|
|
|
|
export default { courseDesc };
|