Files
RSSHub/lib/routes/lanqiao/utils.ts
T
2024-04-04 20:28:45 +08:00

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 };